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

:root {
    --cor-primary: #2563eb;
    --cor-primary-hover: #1d4ed8;
    --cor-primary-soft: #eff6ff;
    --cor-secondary: #64748b;
    --cor-accent: #f97316;
    --cor-accent-hover: #ea580c;
    --cor-fundo: #f8fafc;
    --cor-branco: #ffffff;
    --cor-texto: #0f172a;
    --cor-texto-claro: #64748b;
    --cor-borda: #e2e8f0;
    --cor-sucesso: #16a34a;
    --cor-erro: #dc2626;
    --cor-sucesso-bg: #dcfce7;
    --cor-erro-bg: #fee2e2;
    --sombra-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --sombra-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --sombra-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--cor-fundo); color: var(--cor-texto); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.app-boot-splash {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: linear-gradient(135deg, rgba(239, 246, 255, 1) 0%, rgba(219, 234, 254, 1) 55%, rgba(239, 246, 255, 1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.22s ease;
}

.app-boot-splash.is-hidden {
    opacity: 0;
}

.app-boot-splash-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.app-boot-splash-mark {
    width: 76px;
    height: 76px;
    border-radius: 999px;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.app-boot-splash-logo {
    width: 74px;
    height: 74px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.28));
}

.app-boot-splash-mark::after {
    content: '';
    position: absolute;
    inset: -20%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 35%, rgba(255,255,255,0.28) 50%, rgba(255,255,255,0) 65%);
    transform: translateX(-80%) rotate(15deg);
    animation: app-boot-shimmer 1.15s ease-in-out infinite;
}

@keyframes app-boot-shimmer {
    0% { transform: translateX(-85%) rotate(15deg); opacity: 0; }
    10% { opacity: 1; }
    55% { opacity: 1; }
    100% { transform: translateX(85%) rotate(15deg); opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
    ::view-transition-old(root) {
        animation: vt-fade-out 0.26s ease both;
    }
    ::view-transition-new(root) {
        animation: vt-fade-in 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    ::view-transition-group(vt-image) {
        animation-duration: 0.56s;
        animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    }
    ::view-transition-old(vt-image),
    ::view-transition-new(vt-image) {
        animation-duration: 0.56s;
        animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    }
    ::view-transition-group(vt-title) {
        animation-duration: 0.5s;
        animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    }
    ::view-transition-old(vt-title),
    ::view-transition-new(vt-title) {
        animation-duration: 0.5s;
        animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    }
}

@keyframes vt-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes vt-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

.back-to-top {
    position: fixed;
    right: calc(1rem + env(safe-area-inset-right));
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 1250;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.92);
    color: #334155;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(255, 255, 255, 0.98);
}

/* Layout Geral */
.market-header {
    background: linear-gradient(135deg, #eef4fb 0%, #f8fafc 58%, #fff7ed 100%);
    border-bottom: 1px solid #d8e3f0;
    padding: calc(0.85rem + env(safe-area-inset-top)) max(5%, env(safe-area-inset-right)) 0.85rem max(5%, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.35rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.brand { flex-shrink: 0; }

/* Brand & Logo */
.market-logo {
    height: 82px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 1px 0 rgba(255,255,255,0.72)) drop-shadow(0 4px 10px rgba(15, 23, 42, 0.08));
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-button-mobile {
    display: none;
    color: var(--cor-texto);
    font-size: 1.2rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}

.back-button-mobile:hover {
    background: #f1f5f9;
}

.btn-panel-back {
    margin-right: 1rem;
    text-decoration: none;
    background: #eff6ff;
    color: #2563eb;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-panel-back:hover {
    background: #dbeafe;
    transform: translateY(-1px);
}

.brand a { 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 0.25rem;
    color: var(--cor-texto);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo-strong { color: var(--cor-primary); }
.logo-accent { color: var(--cor-texto); }

.market-search {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    transition: all 0.2s ease;
    flex: 1;
    max-width: 540px;
    min-width: 120px;
    cursor: text;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}

.market-search:focus-within {
    background: var(--cor-branco);
    border-color: var(--cor-primary);
    box-shadow: 0 0 0 4px rgba(31, 111, 229, 0.12);
}

.market-search i { color: var(--cor-texto-claro); font-size: 0.9rem; flex-shrink: 0; }

.search-input-container {
    flex: 1;
    position: relative;
    display: flex; /* Ensure input takes full height/width */
}

.market-search input {
    border: none;
    padding: 0.25rem 0;
    font-size: 0.95rem;
    background: transparent;
    width: 100%;
    font-weight: 500;
    opacity: 1;
}
.market-search input:focus { box-shadow: none; outline: none; }
.market-search input::placeholder { color: var(--cor-texto-claro); }

.header-utilities {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.header-cart-button,
.header-menu-button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(203, 213, 225, 0.88);
    background: rgba(255, 255, 255, 0.82);
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.header-cart-button:hover,
.header-menu-button:hover {
    border-color: var(--cor-primary);
    color: var(--cor-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.header-cart-button {
    position: relative;
}

.cart-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
    border: 2px solid #fff;
}

.cart-count-badge.is-visible {
    display: inline-flex;
}

.header-menu-button {
    width: auto;
    border-radius: 999px;
    padding: 0 0.95rem;
    gap: 0.45rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + 14px);
    left: -35px;
    right: -20px;
    background: var(--cor-branco);
    border: 1px solid var(--cor-borda);
    border-radius: 0.75rem;
    box-shadow: var(--sombra-lg);
    z-index: 1001;
    display: none;
    overflow: hidden;
    padding: 0.5rem 0;
    max-height: 400px;
    overflow-y: auto;
}

.search-suggestions.hero-suggestions {
    left: 0;
    right: 0;
    top: calc(100% + 5px);
}

.search-suggestions.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

@media (max-width: 640px) {
    .search-suggestions {
        position: fixed;
        top: 70px;
        left: 1rem;
        right: 1rem;
        width: auto;
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }
}

.suggestion-item {
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--cor-texto);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.1s;
}

.suggestion-item:hover, .suggestion-item.active {
    background: var(--cor-fundo);
    color: var(--cor-primary);
}

.suggestion-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-price {
    flex: 0 0 auto;
    margin-left: 0.75rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.suggestion-item:hover .suggestion-price,
.suggestion-item.active .suggestion-price {
    color: inherit;
}

.suggestion-item i {
    color: var(--cor-texto-claro);
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

.suggestion-thumb {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    background: var(--cor-fundo);
}

.account { display: flex; justify-content: flex-end; align-items: center; gap: .75rem; }
.account .greeting { color: var(--cor-texto); font-size: .9rem; font-weight: 500; display: none; }
@media (min-width: 1024px) { .account .greeting { display: block; } }

/* Container Principal Compacto */
.market-main {
    max-width: 1440px;
    width: 100%;
    padding: 0.35rem clamp(0.5rem, 2vw, 1.5rem) 0.75rem;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .market-main {
        width: 100%;
        padding: 0.35rem max(1%, env(safe-area-inset-left)) 0.75rem max(1%, env(safe-area-inset-right));
    }

    .btn-panel-back {
        display: none;
    }
}

@media (max-width: 1023px) {
    .market-main {
        width: 100%;
    }

    .product-grid {
        gap: 0.6rem;
    }

    .marketplace-product-card:hover {
        transform: none;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
    }
}

.market-strip-scroller[data-strip-hint]::after,
.market-strip-scroller[data-strip-hint]::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 26px;
    height: 26px;
    margin-top: -13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    opacity: 0.0;
    transform: translateY(0) scale(0.94);
    transition: opacity 220ms ease, transform 220ms ease;
    pointer-events: none;
    z-index: 2;
}

.market-strip-scroller[data-strip-hint]::before {
    left: 10px;
    mask: radial-gradient(circle at 45% 50%, transparent 55%, #000 56%);
}

.market-strip-scroller[data-strip-hint]::after {
    right: 10px;
    mask: radial-gradient(circle at 55% 50%, transparent 55%, #000 56%);
}

.market-strip-scroller[data-strip-hint].show-hint::after,
.market-strip-scroller[data-strip-hint].show-hint::before {
    opacity: 0.85;
    transform: translateY(0) scale(1);
}

.marketplace-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.2rem;
}

.marketplace-kpi-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(191, 219, 254, 0.8);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.08);
}

.marketplace-kpi-label {
    color: var(--cor-texto-claro);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.marketplace-kpi-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--cor-texto);
}

.marketplace-kpi-hint {
    color: var(--cor-texto-claro);
    font-size: 0.82rem;
}

.mobile-bottom-nav,
.mobile-quick-sheet-backdrop {
    display: none;
}

.mobile-bottom-link,
.mobile-quick-sheet-item {
    border: none;
    background: transparent;
    color: var(--cor-texto);
    text-decoration: none;
}

.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.08);
    padding: 0.55rem max(0.85rem, env(safe-area-inset-left)) calc(0.7rem + env(safe-area-inset-bottom)) max(0.85rem, env(safe-area-inset-right));
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 0.35rem;
}

.mobile-bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
}

.mobile-bottom-link i {
    font-size: 1.15rem;
}

.mobile-bottom-link span {
    line-height: 1.1;
}

.mobile-bottom-link.active {
    color: var(--cor-primary);
}

.mobile-bottom-link-cart {
    position: relative;
    margin-top: -1.2rem;
}

.mobile-bottom-link-cart-badge {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
    border: 4px solid rgba(255,255,255,0.95);
    position: relative;
}

.mobile-bottom-link-cart.active .mobile-bottom-link-cart-badge {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.mobile-bottom-link-cart i {
    font-size: 1.3rem;
}

.cart-count-badge-bottom {
    top: -6px;
    right: -4px;
    min-width: 20px;
    height: 20px;
}

.mobile-quick-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(6px);
    z-index: 1300;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 0.9rem;
}

.mobile-quick-sheet-backdrop.active {
    display: flex;
}

.mobile-quick-sheet-panel {
    width: min(100%, 560px);
    background: #fff;
    border-radius: 1.35rem;
    padding: 1rem 1rem 1.15rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    max-height: min(78vh, 640px);
    overflow: auto;
    transform: translateY(18px) scale(0.98);
    opacity: 0;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.mobile-quick-sheet-backdrop.active .mobile-quick-sheet-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.mobile-quick-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mobile-quick-sheet-header strong {
    display: block;
    font-size: 1rem;
    color: var(--cor-texto);
}

.mobile-quick-sheet-header span {
    display: block;
    margin-top: 0.2rem;
    color: var(--cor-texto-claro);
    font-size: 0.84rem;
}

.mobile-quick-orders-summary {
    margin-bottom: 1rem;
}

.mobile-quick-orders-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.08));
    border: 1px solid rgba(191, 219, 254, 0.9);
    text-decoration: none;
}

.mobile-quick-orders-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mobile-quick-orders-copy strong {
    color: var(--cor-texto);
    font-size: 0.95rem;
}

.mobile-quick-orders-copy span {
    color: var(--cor-texto-claro);
    font-size: 0.82rem;
}

.mobile-quick-orders-meta {
    min-width: 64px;
    text-align: right;
}

.mobile-quick-orders-meta b {
    display: block;
    color: var(--cor-primary);
    font-size: 1.2rem;
}

.mobile-quick-orders-meta small {
    color: var(--cor-texto-claro);
    font-size: 0.74rem;
}

.mobile-quick-sheet-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: var(--cor-texto);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-quick-sheet-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.mobile-quick-sheet-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.35rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.mobile-quick-sheet-item:active {
    transform: scale(0.98);
}

.mobile-quick-sheet-item:hover {
    background: rgba(248, 250, 252, 0.9);
}

.mobile-quick-sheet-item span:last-child {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.mobile-quick-sheet-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
}

.mobile-quick-sheet-icon.blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1d4ed8; }
.mobile-quick-sheet-icon.indigo { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #4338ca; }
.mobile-quick-sheet-icon.purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #6d28d9; }
.mobile-quick-sheet-icon.orange { background: linear-gradient(135deg, #ffedd5, #fed7aa); color: #ea580c; }
.mobile-quick-sheet-icon.green { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #15803d; }
.mobile-quick-sheet-icon.cyan { background: linear-gradient(135deg, #cffafe, #a5f3fc); color: #0f766e; }
.mobile-quick-sheet-icon.teal { background: linear-gradient(135deg, #ccfbf1, #99f6e4); color: #0f766e; }
.mobile-quick-sheet-icon.slate { background: linear-gradient(135deg, #e2e8f0, #cbd5e1); color: #334155; }
.mobile-quick-sheet-icon.amber { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #b45309; }
.mobile-quick-sheet-icon.rose { background: linear-gradient(135deg, #ffe4e6, #fecdd3); color: #be123c; }

body.mobile-sheet-open {
    overflow: hidden;
}

.metric-card {
    background: var(--cor-branco);
    border-radius: 0.85rem;
    padding: 1.05rem 1.1rem;
    text-align: left;
    border: 1px solid #eef2f7;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 0.25rem;
}

.metric-card strong {
    font-size: 1.1rem;
    color: var(--cor-escuro);
    font-weight: 800;
}

.metric-card span {
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
    line-height: 1.4;
}

.metric-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--cor-primary);
    background: rgba(31, 111, 229, 0.12);
}

.metric-icon--promo {
    color: var(--cor-laranja);
    background: rgba(255, 122, 0, 0.14);
}

.metric-icon--top {
    color: var(--cor-primary);
    background: rgba(31, 111, 229, 0.14);
}

.metric-icon--new {
    color: var(--cor-vermelho);
    background: rgba(229, 57, 53, 0.14);
}

.metric-card.link-card {
    text-decoration: none;
    text-align: left;
    align-items: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.search-input-wrapper { position: relative; flex: 1; }
.search-input-wrapper i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cor-texto-claro);
    z-index: 1;
    font-size: 0.9rem;
}
.search-input-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--cor-borda);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    background: var(--cor-branco);
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    font-weight: 400;
}
.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--cor-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.hero-search button {
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--cor-primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: none;
}
.hero-search button:hover {
    background: var(--cor-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Stores Section Compacta */
.stores-section { margin-bottom: 1.55rem; }
.stores-section .section-header > div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.stores-section .section-header > .stores-section-header-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.stores-section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.stores-section-header-row > .stores-section-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.stores-section-header-row > .stores-section-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.geo-city-picker-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.64rem;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #fff;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.geo-city-picker-btn i {
    color: #64748b;
}

@media (hover: hover) and (pointer: fine) {
    .geo-city-picker-btn:hover {
        background: #f8fafc;
        border-color: rgba(191, 219, 254, 0.95);
        color: var(--cor-primary);
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    }
}

.geo-city-modal .modal-content {
    display: block;
    max-width: 520px;
    border-radius: 1rem;
}

.geo-city-modal {
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.geo-city-modal .modal-content {
    width: min(520px, calc(100% - 2rem));
    margin: 0;
}

.geo-city-modal .modal-close {
    top: 0.85rem;
    right: 0.95rem;
}

.geo-city-modal-body {
    padding: 1.15rem 1.15rem 1.25rem;
}

.geo-city-modal-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.geo-city-hero-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(59, 130, 246, 0.07));
    color: #1d4ed8;
    border: 1px solid rgba(191, 219, 254, 0.9);
    flex: 0 0 auto;
}

.geo-city-hero-icon i {
    font-size: 1.15rem;
}

.geo-city-modal-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.geo-city-modal-subtitle {
    margin: 0.25rem 0 0;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.35;
}

.geo-city-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

.geo-city-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.geo-city-option-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    border: 1px solid rgba(191, 219, 254, 0.9);
    flex: 0 0 auto;
}

.geo-city-option strong {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.geo-city-option-cta {
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
    .geo-city-option:hover {
        background: #f8fafc;
        border-color: rgba(191, 219, 254, 0.95);
        box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    }
}

.geo-city-modal-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.9rem;
    flex-wrap: wrap;
}

.geo-city-gps-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #fff;
    color: #475569;
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.geo-city-gps-icon {
    width: 34px;
    height: 34px;
    border-radius: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(167, 243, 208, 0.9);
    color: #047857;
    flex: 0 0 auto;
}

.geo-city-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #fff;
    color: #475569;
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.geo-city-more-icon {
    width: 34px;
    height: 34px;
    border-radius: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(199, 210, 254, 0.9);
    color: #4338ca;
    flex: 0 0 auto;
}

@media (hover: hover) and (pointer: fine) {
    .geo-city-gps-btn:hover {
        background: #f8fafc;
        border-color: rgba(191, 219, 254, 0.95);
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    }

    .geo-city-more-btn:hover {
        background: #f8fafc;
        border-color: rgba(191, 219, 254, 0.95);
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    }
}

.geo-city-more-panel {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.geo-city-search {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 0.85rem;
    background: #fff;
}

.geo-city-search i {
    color: #94a3b8;
    font-size: 0.9rem;
}

.geo-city-search-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    background: transparent;
}

.geo-city-more-list {
    margin-top: 0.65rem;
    max-height: min(52vh, 340px);
    overflow: auto;
    border-radius: 0.85rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #fff;
}

.geo-city-more-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.geo-city-more-item + .geo-city-more-item {
    border-top: 1px solid rgba(241, 245, 249, 1);
}

.geo-city-more-item strong {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
    color: #0f172a;
}

.geo-city-more-item span {
    font-size: 0.78rem;
    font-weight: 800;
    color: #64748b;
    white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
    .geo-city-more-item:hover {
        background: #f8fafc;
    }
}

.geo-city-modal-status {
    margin-top: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.95);
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
}

.mobile-bottom-link {
    position: relative;
}

.mobile-bottom-link-geo {
    position: absolute;
    top: -0.15rem;
    right: 0.95rem;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border: 1px solid rgba(191, 219, 254, 0.95);
    color: #1d4ed8;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.mobile-bottom-link-geo i {
    font-size: 0.72rem;
}
.orders-highlight-section {
    margin-bottom: 2rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.98));
    border: 1px solid var(--cor-borda);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: var(--sombra-md);
}
.orders-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}
.order-summary-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.order-summary-label {
    font-size: 0.8rem;
    color: var(--cor-texto-claro);
    font-weight: 600;
}
.order-summary-value {
    font-size: 1.65rem;
    line-height: 1;
    color: var(--cor-texto);
}
.order-summary-hint {
    color: var(--cor-texto-claro);
    font-size: 0.78rem;
}
.orders-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
}
.order-preview-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.order-preview-top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}
.order-preview-top small {
    display: block;
    margin-top: 0.2rem;
    color: var(--cor-texto-claro);
    font-size: 0.8rem;
}
.order-preview-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}
.order-preview-status-pendente { background: #fffbeb; color: #d97706; }
.order-preview-status-pago,
.order-preview-status-processando,
.order-preview-status-separando { background: #eff6ff; color: #2563eb; }
.order-preview-status-enviado { background: #ecfeff; color: #0891b2; }
.order-preview-status-entregue { background: #ecfdf5; color: #059669; }
.order-preview-status-cancelado { background: #fef2f2; color: #dc2626; }
.order-preview-body {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.order-preview-meta {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    color: var(--cor-texto-claro);
    font-size: 0.84rem;
}
.order-preview-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.order-preview-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}
.orders-empty-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
    padding: 1.1rem 1rem;
    background: #fff;
}
.orders-empty-state i {
    font-size: 1.5rem;
    color: #94a3b8;
}
.orders-empty-state p {
    margin: 0.25rem 0 0;
    color: var(--cor-texto-claro);
}
.stores-grid {
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    padding: 0.55rem 0.25rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.stores-grid::-webkit-scrollbar { display: none; }

.store-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.42rem;
    cursor: pointer;
    min-width: 74px;
    transition: transform 0.2s ease;
}

.store-logo-wrapper {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    position: relative;
    background: transparent;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Discrete shadow */
    margin: 3px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-logo-wrapper::before {
    display: none;
}

.store-logo { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 50%;
    display: block;
    padding: 0;
}

.store-verified-badge {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 19px;
    height: 19px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.22);
    font-size: 0.58rem;
    line-height: 1;
}

.store-verified-badge i {
    display: block;
    transform: translateY(0.1px);
}

.marketplace-card-official-badge {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.18);
    font-size: 0.5rem;
    line-height: 1;
    pointer-events: none;
}

.marketplace-card-official-badge i {
    display: block;
    transform: translateY(0.1px);
}

.store-avatar-placeholder {
    width: 100%; 
    height: 100%;
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.store-name { 
    font-size: 0.76rem; 
    font-weight: 500; 
    color: var(--cor-texto);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 84px;
}

body.market-filter-active #lojas-oficiais,
body.market-filter-active #nearYouStrip,
body.market-filter-active #topViewedStrip,
body.market-filter-active #topSoldStrip {
    display: none !important;
}

.store-cta {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--cor-texto-claro);
    margin-top: 0.12rem;
    padding: 0.28rem 0.52rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(191, 219, 254, 0.6);
}
.store-location { display: none; } /* Hide location for cleaner circular look */

@media (hover: hover) and (pointer: fine) {
    .store-card:hover {
        transform: translateY(-5px);
    }

    .store-card:hover .store-logo-wrapper {
        transform: scale(1.05);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Slightly stronger shadow on hover */
    }

    .store-card:hover .store-cta {
        color: var(--cor-primary);
        background: rgba(37, 99, 235, 0.09);
        border-color: rgba(191, 219, 254, 0.95);
    }
}

/* Chips Compactos */
.chip-section { margin-bottom: 1.5rem; }
.chip-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.75rem; }
.chip-header h3 { font-size: 1.1rem; font-weight: 700; }
.chip-actions .chip-clear { font-size: .85rem; color: var(--cor-erro); font-weight: 500; }
.chip-list {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    padding: 0.25rem 0.25rem 0.5rem;
    scrollbar-width: none;
}

.chip-list::-webkit-scrollbar {
    display: none;
    height: 0;
}
.chip {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--cor-borda);
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--cor-secondary);
    background: var(--cor-branco);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: var(--sombra-sm);
}
.chip:hover, .chip.active {
    background: var(--cor-primary);
    color: white;
    border-color: var(--cor-primary);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

/* Product Grid Compacto (Estilo ML) */
.product-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.8rem;
}
.product-section h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.4px; }
.section-subtitle { color: var(--cor-texto-claro); font-size: .84rem; }

.market-strip {
    margin: 1rem 0 0.7rem;
    position: relative;
}

.market-strip-header {
    margin-bottom: 0.75rem;
}

.market-strip-scroller {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0.1rem 0.35rem;
    gap: 0;
    scrollbar-width: none;
}

.market-strip-scroller::-webkit-scrollbar {
    display: none;
    height: 0;
}

.market-strip-track {
    display: flex;
    flex: 0 0 auto;
    gap: 0.75rem;
    min-height: 320px;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.market-strip.is-preloading .market-strip-track {
    opacity: 0.92;
}

.market-strip.is-loaded .market-strip-track {
    opacity: 1;
    transform: none;
}

.market-strip-skeleton-card {
    flex: 0 0 auto;
    width: clamp(178px, 68vw, 240px);
    height: 320px;
    border-radius: 0.5rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: linear-gradient(90deg, rgba(248,250,252,1) 0%, rgba(226,232,240,1) 40%, rgba(248,250,252,1) 80%);
    background-size: 200% 100%;
    animation: market-strip-skeleton 1.1s ease-in-out infinite;
}

@keyframes market-strip-skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -40% 0; }
}

.market-strip-sentinel {
    flex: 0 0 1px;
    width: 1px;
    height: 1px;
}

.market-strip .product-card {
    flex: 0 0 auto;
    width: clamp(178px, 68vw, 240px);
    scroll-snap-align: start;
}

.market-strip-loader {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cor-texto-claro);
    margin-top: 0.6rem;
}

.market-strip-nav {
    display: none;
    position: absolute;
    top: calc(50% + 1.1rem);
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    z-index: 3;
}

.market-strip-nav:disabled {
    opacity: 0.35;
    cursor: default;
    box-shadow: none;
}

.market-strip-nav-prev {
    left: 0.25rem;
}

.market-strip-nav-next {
    right: 0.25rem;
}

@media (hover: hover) and (pointer: fine) {
    .market-strip-nav {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (min-width: 640px) {
    .market-strip .product-card {
        width: clamp(200px, 40vw, 260px);
    }
    .market-strip-skeleton-card {
        width: clamp(200px, 40vw, 260px);
    }
}

@media (min-width: 1024px) {
    .market-strip .product-card {
        width: 240px;
    }
    .market-strip-skeleton-card {
        width: 240px;
    }
}

.marketplace-empty-state {
    text-align: center;
    padding: 3rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    color: var(--cor-texto-claro);
}

.marketplace-empty-state i {
    color: #cbd5e1;
}

.marketplace-empty-state strong {
    font-size: 1.05rem;
    color: var(--cor-texto);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
    gap: 0.65rem;
    margin-top: 0.8rem;
}

.product-card {
    background: var(--cor-branco);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--cor-borda);
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #f1f5f9;
    display: block;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (hover: hover) and (pointer: fine) {
    .product-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

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

.product-image-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #f1f5f9;
}

.slider-wrapper,
.slide {
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.62);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
    z-index: 2;
}

.product-image-slider:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: rgba(15, 23, 42, 0.82);
}

.slider-btn.prev { left: 0.75rem; }
.slider-btn.next { right: 0.75rem; }

.service-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, rgba(31, 111, 229, 0.12), rgba(16, 185, 129, 0.12));
    color: var(--cor-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.service-image-placeholder i {
    font-size: 2rem;
}

.img-skeleton {
    width: 100%; height: 100%;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}
@keyframes loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.product-info { 
    padding: 0.7rem; 
    display: flex; 
    flex-direction: column; 
    gap: 0.2rem; 
    flex: 1; 
}

.product-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.25rem;
    flex-wrap: nowrap;
    overflow: hidden;
}

.product-card-actions-row {
    display: flex;
    gap: 0.5rem;
}

.product-card-actions-row > * {
    flex: 1;
}

.btn-card-negotiate-outline {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
}

.pagination-controls-centered {
    justify-content: center;
}

.store-hero {
    margin-bottom: 1.5rem;
}

.store-hero-shell {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(191, 219, 254, 0.9);
    border-radius: 1.35rem;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.store-hero-logo {
    width: 110px;
    height: 110px;
    border-radius: 1.2rem;
    overflow: hidden;
    flex-shrink: 0;
    background: white;
    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.14);
}

.store-hero-logo-image,
.store-hero-logo-fallback {
    width: 100%;
    height: 100%;
}

.store-hero-logo-image {
    object-fit: cover;
    padding: 0;
    display: block;
}

.store-hero-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-size: 2rem;
    font-weight: 800;
}

.store-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
}

.store-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.store-hero-tag {
    display: inline-flex;
    width: fit-content;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.85);
    color: var(--cor-primary);
    font-weight: 700;
    font-size: 0.78rem;
}

.store-hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--cor-texto);
    line-height: 1.1;
}

.store-hero-meta,
.store-hero-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    color: var(--cor-texto-claro);
    font-size: 0.92rem;
}

.store-hero-meta span,
.store-hero-contact span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.store-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 210px;
}

.store-toolbar {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.store-toolbar-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.store-toolbar-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--cor-texto);
}

.store-toolbar-subtitle {
    font-size: 0.92rem;
    color: var(--cor-texto-claro);
    margin-top: 0.25rem;
}

.store-toolbar-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.categories-page-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.25rem;
    padding: 1.4rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.08));
    border: 1px solid rgba(191, 219, 254, 0.95);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    margin-bottom: 1.5rem;
}

.categories-page-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.categories-page-tag {
    width: fit-content;
    display: inline-flex;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    color: var(--cor-primary);
    font-size: 0.78rem;
    font-weight: 700;
}

.categories-page-hero h1 {
    font-size: 2rem;
    line-height: 1.1;
    color: var(--cor-texto);
}

.categories-page-hero p {
    color: var(--cor-texto-claro);
    font-size: 0.96rem;
}

.categories-page-hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.categories-page-stat {
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(191, 219, 254, 0.85);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.categories-page-stat strong {
    font-size: 1.4rem;
    color: var(--cor-texto);
}

.categories-page-stat span {
    color: var(--cor-texto-claro);
    font-size: 0.85rem;
}

.categories-page-grid-section {
    margin-bottom: 1.5rem;
}

.categories-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.category-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid var(--cor-borda);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
}

.category-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
}

.category-card strong {
    color: var(--cor-texto);
    font-size: 0.96rem;
}

.category-card span:last-child {
    color: var(--cor-texto-claro);
    font-size: 0.82rem;
}
.store-badge {
    background: transparent;
    color: var(--cor-texto-claro);
    padding: 0;
    border-radius: 0;
    font-size: 0.7rem;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: none;
}
.store-badge i { display: none; }
.city-badge {
    background: transparent;
    color: var(--cor-texto-claro);
    padding: 0;
    border-radius: 0;
    font-size: 0.7rem;
    font-weight: 400;
    border: none;
}

.product-title { 
    font-size: 0.86rem; 
    line-height: 1.25; 
    font-weight: 400; 
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.15rem;
    min-height: 2.2em;
}

.product-price { 
    display: flex; 
    align-items: baseline; 
    gap: 0.5rem; 
    margin-bottom: 0; 
    flex-wrap: wrap; 
    margin-top: auto; 
}
.price { color: #333; font-weight: 400; font-size: 1.25rem; letter-spacing: normal; }
.price-promo { color: var(--cor-sucesso); font-weight: 400; font-size: 1.25rem; letter-spacing: normal; }
.price-old { color: #999; text-decoration: line-through; font-size: .75rem; font-weight: 400; }

.product-link {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cor-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.product-link:hover {
    color: var(--cor-primary-hover);
}

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

.product-card-actions-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.4rem;
}

.btn-add-cart,
.btn-card-negotiate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 34px;
    border-radius: 0.55rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.76rem;
    line-height: 1.1;
    padding: 0.48rem 0.58rem;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.btn-add-cart {
    background: #eff6ff;
    color: var(--cor-primary);
    border-color: #bfdbfe;
}

.btn-card-negotiate {
    background: #25d366;
    color: white;
}

.btn-card-negotiate-outline {
    background: white;
    color: #16a34a;
    border-color: #86efac;
}

.marketplace-toast-container {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10000;
}

.marketplace-toast {
    min-width: 240px;
    max-width: 320px;
    background: #0f172a;
    color: white;
    padding: 0.9rem 1rem;
    border-radius: 0.85rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.marketplace-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.marketplace-toast-error {
    background: #b91c1c;
}

/* Buttons */
.btn-primary {
    background: var(--cor-primary);
    color: white;
    padding: .6rem 1.25rem;
    border-radius: .75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}
.btn-primary:hover {
    background: var(--cor-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}
.btn-secondary {
    background: white;
    color: var(--cor-texto);
    border: 1px solid var(--cor-borda);
    padding: .6rem 1.25rem;
    border-radius: .75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--cor-primary);
}

.store-card {
    min-width: 90px;
    max-width: 100px;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.store-logo-wrapper {
    width: 80px;
    height: 80px;
}

.store-verified-badge {
    width: 21px;
    height: 21px;
    font-size: 0.62rem;
}

.marketplace-card-official-badge {
    width: 15px;
    height: 15px;
    font-size: 0.48rem;
}

.store-info {
    width: 100%;
    margin-top: 0;
}

.store-name {
    max-width: 100px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.85rem;
}

.product-summary {
    color: var(--cor-texto-claro);
    font-size: 0.76rem;
    line-height: 1.4;
    min-height: 2.1em;
}

.product-link-primary {
    margin-top: 0.3rem;
}

.product-card-minimal {
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.08);
}

.product-card-minimal .product-info {
    gap: 0.22rem;
}

.product-card-minimal .product-title {
    font-weight: 500;
}

.product-card-minimal .product-link {
    font-size: 0.78rem;
}

.marketplace-product-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.9rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
    background: #fff;
    overflow: hidden;
    min-height: 100%;
}
@media (hover: hover) and (pointer: fine) {
    .marketplace-product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    }
}

.marketplace-product-card .product-image {
    background: #f8fafc;
    aspect-ratio: 1 / 1;
}

.marketplace-card-media {
    position: relative;
    z-index: 2;
}

.marketplace-card-like {
    position: absolute;
    right: 0.7rem;
    bottom: 0.7rem;
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.94);
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.marketplace-card-like i {
    font-size: 1.05rem;
    pointer-events: none;
}

.marketplace-card-like:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.14);
}

.marketplace-card-like.is-active {
    color: #e11d48;
    border-color: rgba(225, 29, 72, 0.28);
}

.marketplace-card-like.is-bounce i {
    animation: like-bounce 360ms ease;
}

@keyframes like-bounce {
    0% { transform: scale(1); }
    35% { transform: scale(1.18); }
    70% { transform: scale(0.96); }
    100% { transform: scale(1); }
}

.marketplace-product-card .product-info {
    gap: 0.26rem;
    padding: 0.62rem 0.62rem 0.68rem;
    position: relative;
    z-index: 2;
}

.marketplace-product-card .product-image img {
    object-fit: cover;
    padding: 0;
    background: transparent;
}

.marketplace-product-card:hover .product-image img {
    transform: none;
}

.marketplace-product-card .product-meta {
    margin-bottom: 0;
}

.marketplace-product-card .city-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0;
    border-radius: 999px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.marketplace-product-card .city-badge i {
    color: #94a3b8;
    font-size: 0.66rem;
}

.marketplace-product-card .product-title {
    margin-bottom: 0;
    min-height: 2.2em;
    font-size: 0.86rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.22;
}

.marketplace-product-card .product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.14rem;
    margin-top: 0.08rem;
}

.marketplace-product-card .price,
.marketplace-product-card .price-promo {
    font-size: 1.04rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.marketplace-product-card .price-promo {
    color: #16a34a;
}

.marketplace-product-card .price-old {
    font-size: 0.68rem;
    color: #94a3b8;
}

.marketplace-product-card .product-link-primary {
    width: 100%;
    justify-content: center;
    margin-top: 0.08rem;
    padding: 0.64rem 0.82rem;
    border-radius: 0.78rem;
    border: 1px solid #ff7a00;
    background: #fff7ed;
    color: #c2410c;
    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
}

.marketplace-product-card .product-link-primary i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .marketplace-product-card .product-link-primary:hover {
        border-color: #ff7a00;
        background: #ff7a00;
        color: #fff;
        box-shadow: 0 12px 24px rgba(255, 122, 0, 0.18);
    }

    .marketplace-product-card .product-link-primary:hover i {
        transform: translateX(3px);
    }
}

.marketplace-card-promo-badge {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.96);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.22);
}

.marketplace-card-discount-badge {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.96);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.22);
}

.marketplace-product-card .product-title-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: inherit;
    text-decoration: none;
}

.marketplace-product-card .product-title-link:hover {
    text-decoration: underline;
}

.marketplace-card-stretched-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.marketplace-card-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.marketplace-card-city {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.15;
    width: 100%;
    justify-content: center;
    text-align: center;
}

.marketplace-card-city i {
    color: #94a3b8;
    font-size: 0.72rem;
}

.marketplace-card-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.92);
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.marketplace-card-pill i {
    font-size: 0.72rem;
}

.marketplace-card-pill-official {
    border-color: rgba(37, 99, 235, 0.22);
    background: rgba(239, 246, 255, 0.94);
    color: #1d4ed8;
}

.marketplace-card-pill.is-success {
    border-color: rgba(22, 163, 74, 0.22);
    background: rgba(220, 252, 231, 0.9);
    color: #166534;
}

.marketplace-card-pill.is-warn {
    border-color: rgba(249, 115, 22, 0.25);
    background: rgba(255, 237, 213, 0.92);
    color: #9a3412;
}

.marketplace-product-card .product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.marketplace-product-card.is-promo {
    border-color: rgba(34, 197, 94, 0.28);
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.08);
}

.infinite-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 700;
    min-height: 0;
}

.infinite-loader[hidden] {
    display: none !important;
}

.marketplace-product-card.is-promo .product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(34, 197, 94, 0.14);
    pointer-events: none;
}

.marketplace-product-card.is-promo .product-link-primary {
    border-color: rgba(34, 197, 94, 0.28);
}

@media (min-width: 1024px) {
    .marketplace-kpis {
        display: none;
    }
}

.product-badge-sale {
    background: rgba(22, 163, 74, 0.92);
    color: white;
}

.market-footer {
    background: var(--cor-branco);
    padding: 3rem clamp(1rem, 5vw, 4rem) 6rem; /* Added bottom padding for mobile spacing */
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid var(--cor-borda);
    position: relative;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 640px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        align-items: center; /* Center items in column */
    }
    
    .footer-brand {
        flex-direction: column;
        text-align: center;
        align-items: center; /* Center logo and text */
        width: 100%; /* Ensure it takes full width for centering */
    }
    
    .footer-brand div {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center text inside div */
    }
    
    .footer-links {
        justify-content: center;
        width: 100%;
    }
    
    .footer-link {
        width: 100%;
        justify-content: center;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.footer-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 1px 0 rgba(255,255,255,0.72)) drop-shadow(0 4px 10px rgba(15, 23, 42, 0.08));
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
}

.footer-brand strong {
    display: block;
    font-size: 1rem;
    color: var(--cor-texto);
}

.footer-brand span {
    font-size: 0.85rem;
    color: var(--cor-texto-claro);
}

.footer-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-view-store {
    background: var(--cor-branco);
    color: #f97316; /* Laranja */
    border: 1px solid #f97316;
    padding: 0.8rem 0.95rem;
    border-radius: 0.6rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.16); /* Sombra laranja */
    font-size: 0.9rem;
}

.btn-view-store:hover {
    background: #fff7ed;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(249, 115, 22, 0.3);
}

.footer-link {
    color: var(--cor-texto-claro);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Estilo específico para o botão "Quero Vender" (Meu Painel / PDV também) */
.footer-link.btn-vender,
.footer-link[href*="painel/"],
.footer-link[href*="pdv/"] {
    background: var(--cor-branco);
    color: #f97316; /* Laranja */
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    border: 1px solid #f97316;
    box-shadow: 0 4px 6px rgba(249, 115, 22, 0.2); /* Sombra laranja */
    justify-content: center;
}

.footer-link.btn-vender:hover,
.footer-link[href*="painel/"]:hover,
.footer-link[href*="pdv/"]:hover {
    background: #fff7ed;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(249, 115, 22, 0.3);
}

/* Estilo específico para o botão "WhatsApp" no rodapé */
.footer-link[href*="wa.me"] {
    background: var(--cor-branco);
    color: #25D366; /* WhatsApp Green */
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    border: 1px solid #25D366;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2); /* Sombra verde */
    justify-content: center;
}

.footer-link[href*="wa.me"]:hover {
    background: #f0fdf4; /* Light green bg */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.3);
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--cor-texto-claro);
}

/* Category Nav (Novo) */
.main-nav {
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(216, 227, 240, 0.9);
    padding: 0.4rem 5% 0.5rem;
    overflow-x: auto;
    backdrop-filter: blur(10px);
}
.nav-list {
    display: flex;
    gap: 0.65rem;
    white-space: nowrap;
    padding-bottom: 0.1rem;
    max-width: 1760px;
    margin: 0 auto;
    align-items: center;
}
.nav-link {
    color: #475569;
    font-weight: 600;
    font-size: 0.86rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.nav-link .nav-icon {
    margin-right: 0.5rem;
    font-size: 0.92em;
    opacity: 0.9;
}
.nav-link:hover {
    color: var(--cor-primary);
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(191, 219, 254, 0.95);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(191, 219, 254, 0.95);
    color: #1d4ed8;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
}

/* Modal (Novo) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 900px;
    border-radius: 1rem;
    display: flex;
    overflow: hidden;
    position: relative;
    animation: slideIn 0.3s;
}
@keyframes slideIn { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #aaa;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}
.modal-close:hover { color: #000; }

.modal-image-container {
    flex: 1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.modal-image {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}
.modal-info {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--cor-borda);
}

.pagination-info {
    font-size: .875rem;
    color: var(--cor-texto-claro);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border: 1px solid var(--cor-borda);
    border-radius: 0.5rem;
    background: var(--cor-branco);
    color: var(--cor-texto);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.page-btn:hover { 
    background: #f8fafc; 
    border-color: #cbd5e1;
    color: var(--cor-primary);
}

.page-btn.active { 
    background: var(--cor-primary); 
    border-color: var(--cor-primary); 
    color: white; 
}

.page-btn.disabled { 
    opacity: .5; 
    cursor: not-allowed; 
    pointer-events: none;
}

.page-dots {
    color: var(--cor-texto-claro);
    padding: 0 0.25rem;
    font-size: 0.9rem;
}

.page-jump-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--cor-borda);
}

.page-jump-input {
    width: 60px;
    height: 36px;
    border: 1px solid var(--cor-borda);
    border-radius: 0.5rem;
    padding: 0 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.page-jump-input:focus {
    outline: none;
    border-color: var(--cor-primary);
}

@media (max-width: 640px) {
    .pagination-wrapper { 
        justify-content: center; 
        flex-direction: column;
        gap: 1rem;
    }
    .pagination-info { order: 2; }
    .pagination-controls { order: 1; justify-content: center; }
    .page-jump-form { 
        margin-left: 0; 
        padding-left: 0; 
        border-left: none; 
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
}
.modal-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.2; }
.modal-price { font-size: 2rem; color: var(--cor-primary); font-weight: 700; margin-bottom: 0.5rem; }
.modal-stock { color: var(--cor-texto-claro); font-size: 0.9rem; margin-bottom: 1.5rem; }
.modal-description { color: var(--cor-texto); line-height: 1.6; margin-bottom: 2rem; font-size: 1rem; }
.buy-button {
    background: var(--cor-sucesso);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}
.buy-button:hover { background: #15803d; }

@media (max-width: 768px) {
    .modal-content { flex-direction: column; margin: 10% auto; width: 95%; }
    .modal-image-container { height: 300px; padding: 1rem; }
    .modal-info { padding: 1.5rem; }
    .modal-title { font-size: 1.4rem; }
    .modal-price { font-size: 1.5rem; }
    .detail-actions { grid-template-columns: minmax(0, 1fr); }
}

/* Mobile Tweaks */
@media (max-width: 640px) {
    .market-header { padding: calc(0.5rem + env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) 0.5rem max(0.75rem, env(safe-area-inset-left)); gap: 0.5rem; }
    .market-logo { height: 60px; width: auto; display: block; }
    .back-button-mobile { display: flex; }
    .market-search { display: flex; flex: 1; max-width: none; min-width: 0; padding: 0.5rem 0.75rem; gap: 0.45rem; border-radius: 999px; }
    .market-search i { font-size: 0.85rem; }
    .market-search input { font-size: 0.85rem; padding: 0.2rem 0; }
    .header-utilities { gap: 0.45rem; }
    .user-avatar-trigger,
    .user-avatar-link { width: 40px; height: 40px; }
    .header-cart-button { display: none !important; }
    .header-menu-button { display: none !important; }
    .account .btn-primary, .account .btn-secondary { padding: 0.4rem 0.6rem; font-size: 0.75rem; }
    
    /* Ajuste para telas MUITO pequenas (iPhone SE, etc) */
    @media (max-width: 379px) {
        .market-header { padding: 0.4rem; }
        .market-logo { height: 52px; }
        .brand a { font-size: 1rem; }
        .account { gap: 0.25rem; }
        .account .btn-primary span, .account .btn-secondary span { display: none; }
        .account .btn-primary, .account .btn-secondary { padding: 0.35rem; }
        .market-search { padding: 0.35rem 0.5rem; }
        .market-search input { font-size: 0.8rem; }
    }
    
    .market-main {
        padding-bottom: calc(6rem + env(safe-area-inset-bottom));
    }

    .mobile-bottom-nav {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .mobile-bottom-link {
        font-size: 0.68rem;
    }

    .marketplace-card-promo-badge,
    .marketplace-card-discount-badge {
        top: 0.55rem;
        font-size: 0.66rem;
        padding: 0.18rem 0.45rem;
    }

    .marketplace-card-promo-badge {
        left: 0.55rem;
    }

    .marketplace-card-discount-badge {
        right: 0.55rem;
    }

    .marketplace-card-like {
        width: 36px;
        height: 36px;
        right: 0.55rem;
        bottom: 0.55rem;
    }

    .marketplace-card-like i {
        font-size: 0.98rem;
    }

    .mobile-quick-sheet-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .market-main {
        padding-left: max(1%, env(safe-area-inset-left));
        padding-right: max(1%, env(safe-area-inset-right));
        width: 100%;
    }

    .back-to-top {
        bottom: calc(5.6rem + env(safe-area-inset-bottom));
    }

    .btn-primary, .btn-secondary { padding: 0.42rem 0.75rem; font-size: 0.78rem; border-radius: 0.55rem; }
    .metric-card { padding: 0.9rem; }
    .metric-card strong { font-size: 1rem; }
    .metric-card span { font-size: 0.82rem; }
    .metric-icon { width: 32px; height: 32px; font-size: 0.9rem; }
    .orders-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .orders-empty-state,
    .order-preview-top,
    .order-preview-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .categories-page-hero {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
    .categories-page-hero h1 {
        font-size: 1.45rem;
    }
    .categories-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
    }
    .stores-grid {
        gap: 1rem;
    }
    .store-card {
        min-width: 90px;
        max-width: 100px;
    }
    .category-card {
        padding: 0.85rem;
    }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .product-title { font-size: 0.78rem; min-height: 2.45em; }
    .price, .price-promo { font-size: 1rem; }
    .product-info { padding: 0.6rem; }
    .product-card-actions-row { grid-template-columns: minmax(0, 1fr); }
    .product-summary {
        min-height: 0;
        font-size: 0.76rem;
    }
    .btn-add-cart,
    .btn-card-negotiate {
        min-height: 32px;
        font-size: 0.74rem;
        padding: 0.45rem 0.55rem;
    }
    
    .nav-list { padding: 0 1rem 0.5rem; } /* Mobile Nav */
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 379px) {
    .marketplace-card-like {
        width: 34px;
        height: 34px;
        right: 0.5rem;
        bottom: 0.5rem;
    }
}

.btn-like-product {
    width: 100%;
    min-height: 44px;
    border-radius: 0.5rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.9);
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-like-product.is-active {
    color: #e11d48;
    border-color: rgba(225, 29, 72, 0.28);
}

.btn-like-product:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.22);
}

@media (min-width: 641px) and (max-width: 1023px) {
    .market-main {
        padding-bottom: calc(6.3rem + env(safe-area-inset-bottom));
    }

    .header-menu-button { display: none !important; }
    .header-cart-button { display: none !important; }

    .mobile-bottom-nav {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .mobile-bottom-link {
        font-size: 0.74rem;
    }

    .market-search {
        border-radius: 999px;
    }

    .mobile-quick-sheet-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .btn-primary, .btn-secondary { padding: 0.48rem 0.9rem; font-size: 0.85rem; border-radius: 0.6rem; }
    .metric-card strong { font-size: 1.05rem; }
    .metric-card span { font-size: 0.86rem; }
    .orders-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .categories-page-hero {
        grid-template-columns: 1fr;
    }
    .product-card-actions-row { grid-template-columns: minmax(0, 1fr); }
    .btn-add-cart,
    .btn-card-negotiate { font-size: 0.75rem; }

    .market-main {
        padding-left: max(1%, env(safe-area-inset-left));
        padding-right: max(1%, env(safe-area-inset-right));
        width: 100%;
    }

    .store-hero-shell {
        padding: 1.05rem;
    }

    .store-hero-logo {
        width: 84px;
        height: 84px;
    }

    .store-hero-title {
        font-size: 1.6rem;
    }

    .store-hero-actions {
        min-width: 0;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .back-to-top {
        bottom: calc(6rem + env(safe-area-inset-bottom));
    }
}

/* Tablet: 640px - 1023px */
@media (min-width: 640px) {
    .market-logo { height: 72px; }
    .market-search { display: flex; min-width: 120px; max-width: 420px; }
    .market-header { padding: calc(0.75rem + env(safe-area-inset-top)) max(4%, env(safe-area-inset-right)) 0.75rem max(4%, env(safe-area-inset-left)); gap: 1rem; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* Desktop: 1024px - 1439px */
@media (min-width: 1024px) {
    .market-logo { height: 78px; }
    .market-search { min-width: 180px; max-width: 520px; }
    .market-header { padding: 0.75rem 5%; gap: 1.1rem; }
    .header-menu-button { display: none !important; }
    .account .greeting { display: block; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .mobile-bottom-nav {
        display: none !important;
    }
    .mobile-quick-sheet-backdrop {
        align-items: center;
        padding: 1.5rem;
    }
    .mobile-quick-sheet-panel {
        border-radius: 1.35rem;
        max-width: 720px;
    }
    .mobile-quick-sheet-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Large Desktop: 1440px+ */
@media (min-width: 1440px) {
    .market-logo { height: 84px; }
    .market-search { max-width: 500px; }
    .market-header { padding: 0.75rem 3%; }
    .market-main { padding: 1rem 3%; max-width: 1760px; }
    .nav-link {
        padding: 0.62rem 1rem;
        font-size: 0.92rem;
    }

    .stores-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        overflow-x: visible;
        padding: 1rem 0;
    }

    .store-card {
        min-width: 0;
    }

    .store-logo-wrapper {
        width: 92px;
        height: 92px;
    }

    .store-name {
        max-width: none;
    }
}

@media (min-width: 1920px) {
    .market-header { padding: 0.75rem 2.5%; }
    .market-main { max-width: 1860px; padding-left: 2.5%; padding-right: 2.5%; }
}



/* Alerts */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error, .alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
}

/* Account Menu & Avatar */
.account-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.header-utilities .account-menu {
    gap: 0.75rem;
}

.user-avatar-trigger, .user-avatar-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    background: var(--cor-fundo);
    border: 2px solid var(--cor-borda);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.user-avatar-trigger:hover, .user-avatar-link:hover {
    border-color: var(--cor-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--cor-fundo);
    color: var(--cor-texto-claro);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.user-avatar-link .avatar-placeholder {
    background: var(--cor-primary);
    color: white;
}

/* Dropdown */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: var(--cor-branco);
    border: 1px solid var(--cor-borda);
    border-radius: 0.75rem;
    box-shadow: var(--sombra-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
    display: none; /* Hidden by default */
    z-index: 1000;
    transform-origin: top right;
    animation: dropdownFade 0.2s ease;
}

@media (max-width: 640px) {
    .user-dropdown {
        position: fixed;
        top: 70px;
        right: 1rem;
        left: 1rem;
        width: auto;
        transform-origin: top center;
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }
}

.user-dropdown.show {
    display: block; /* Show when active */
}

.desktop-quick-dropdown {
    right: 0;
    left: auto;
    width: 320px;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.user-info-header {
    padding: 1rem;
    border-bottom: 1px solid var(--cor-borda);
    margin-bottom: 0.5rem;
}

.user-info-header strong {
    display: block;
    color: var(--cor-texto);
    font-size: 0.95rem;
}

.user-info-header span {
    display: block;
    color: var(--cor-texto-claro);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--cor-texto);
    font-size: 0.9rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: var(--cor-fundo);
    color: var(--cor-primary);
}

.dropdown-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: var(--cor-borda);
    margin: 0.5rem 0;
}

/* Mobile Optimization - Prevent Zoom on Inputs */
@media (max-width: 768px) {
    .market-search input,
    .hero-search input,
    .search-input-wrapper input {
        font-size: 16px !important;
    }
}

/* Product Detail Page */
.product-detail-container {
    width: 100%;
    max-width: 1440px;
    margin: 1rem auto;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-gallery {
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    min-height: 400px;
}

.main-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    min-height: 360px;
    border-radius: 0.85rem;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 100%;
    max-height: 500px;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 0.75rem;
}

.gallery-thumbs-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0 0.25rem 0.5rem;
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.25rem 0.25rem;
    flex: 1;
    scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.gallery-thumb {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border: 1px solid var(--cor-borda);
    border-radius: 0.4rem;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--cor-branco);
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
    background: transparent;
}

.gallery-thumb.active {
    opacity: 1;
    border-color: var(--cor-primaria);
    box-shadow: var(--sombra-sm);
}

.thumb-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--cor-borda);
    background: var(--cor-branco);
    color: var(--cor-texto);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.thumb-nav:hover {
    background: var(--cor-primaria);
    color: var(--cor-branco);
    border-color: var(--cor-primaria);
}

.thumb-nav:disabled {
    opacity: 0.4;
    cursor: default;
}

.product-detail-info {
    padding: 1rem;
    border: 1px solid var(--cor-borda);
    border-radius: 0.5rem;
    height: fit-content;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.product-condition {
    font-size: 0.82rem;
    color: var(--cor-primary);
    font-weight: 700;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
}

.product-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.product-stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.product-stock-pill.available {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.product-stock-pill.unavailable {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.detail-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cor-texto);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.detail-price-container {
    margin-bottom: 1.5rem;
}

.product-trust-list {
    display: grid;
    gap: 0.55rem;
    margin: 1rem 0 1.35rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid #e2e8f0;
}

.product-trust-list span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cor-texto-claro);
    font-size: 0.92rem;
}

.detail-old-price {
    text-decoration: line-through;
    color: var(--cor-texto-claro);
    font-size: 0.9rem;
    display: block;
}

.detail-price-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-price {
    font-size: 2rem;
    font-weight: 300;
    color: var(--cor-texto);
}

.detail-discount {
    color: var(--cor-sucesso);
    font-size: 1rem;
    font-weight: 500;
}

.seller-info-card {
    background: var(--cor-fundo);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--cor-borda);
}

.seller-info-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--cor-texto);
}

.seller-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.seller-action-row {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
}

.seller-action-row > * {
    flex: 1;
}

.seller-link-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.8rem 0.9rem;
    border-radius: 0.5rem;
    border: 1px solid #86efac;
    background: rgba(34, 197, 94, 0.08);
    color: #15803d;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.seller-link-inline:hover {
    background: rgba(34, 197, 94, 0.12);
    border-color: #4ade80;
    transform: translateY(-1px);
}

.seller-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cor-borda);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cor-texto-claro);
    overflow: hidden;
}

.seller-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-details p {
    font-size: 0.9rem;
    line-height: 1.2;
}

.seller-location {
    font-size: 0.8rem;
    color: var(--cor-texto-claro);
    margin-top: 2px;
}

.seller-contact {
    font-size: 0.8rem;
    color: var(--cor-texto-claro);
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.detail-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.btn-buy-now {
    width: 100%;
    padding: 0.8rem 0.9rem;
    background: var(--cor-primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.btn-buy-now:hover {
    background: var(--cor-primary-hover);
}

.detail-actions .btn-add-cart {
    width: 100%;
    padding: 0.8rem 0.9rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--cor-primary);
    border: none;
    border-radius: 0.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    min-height: 44px;
    white-space: normal;
}

.detail-actions .btn-add-cart:hover {
    background: rgba(37, 99, 235, 0.2);
}

.btn-whatsapp {
    width: 100%;
    padding: 0.8rem 0.9rem;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background: #16a34a;
}

.btn-whatsapp-full {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.product-description-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--cor-borda);
}

.product-description-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--cor-texto);
}

.description-content {
    font-size: 1rem;
    color: var(--cor-secondary);
    line-height: 1.6;
}

.similar-products-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--cor-borda);
}

.similar-products-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--cor-texto);
}

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    padding: 3rem 1rem;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 92%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #fff;
    font-size: 2.25rem;
    cursor: pointer;
}

.img-skeleton-large {
    width: 100%;
    height: 100%;
    background: #eee;
    min-height: 400px;
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .product-gallery {
        min-height: 300px;
    }
    
    .detail-title {
        font-size: 1.25rem;
    }
    
    .detail-price {
        font-size: 1.75rem;
    }

    .marketplace-kpis {
        grid-template-columns: 1fr;
    }

    .store-hero-shell {
        padding: 0.85rem;
        gap: 0.85rem;
        border-radius: 1.1rem;
        flex-direction: row;
        align-items: center;
    }

    .store-hero-logo {
        width: 68px;
        height: 68px;
        border-radius: 0.9rem;
    }

    .store-hero-content,
    .store-toolbar-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .store-hero-content {
        flex: 1;
        min-width: 0;
    }

    .store-toolbar-main {
        width: 100%;
    }

    .store-hero-copy {
        gap: 0.45rem;
    }

    .store-hero-tag {
        padding: 0.28rem 0.6rem;
        font-size: 0.72rem;
    }

    .store-hero-title {
        font-size: 1.25rem;
    }

    .store-hero-meta {
        font-size: 0.82rem;
        gap: 0.45rem 0.75rem;
    }

    .store-hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
        gap: 0.6rem;
    }

    .store-hero-actions a {
        flex: 1 1 160px;
        justify-content: center;
    }

    .store-toolbar {
        margin-bottom: 1.15rem;
        gap: 0.7rem;
    }

    .store-toolbar-title {
        font-size: 1.2rem;
    }

    .store-toolbar-subtitle {
        font-size: 0.88rem;
    }

    .store-hero-actions,
    .seller-action-row {
        width: 100%;
    }

    .detail-actions {
        grid-template-columns: 1fr;
    }
}

.home-skeleton {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: calc(92px + 1rem) 5% 2rem;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    opacity: 1;
    visibility: visible;
}

.home-skeleton.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.home-skeleton-inner {
    width: 100%;
    max-width: 1200px;
    display: grid;
    gap: 1.25rem;
}

.home-skeleton-banner {
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 1.25rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
    display: grid;
    gap: 0.75rem;
}

.home-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.home-skeleton-pill,
.home-skeleton-title,
.home-skeleton-line,
.home-skeleton-card {
    border-radius: 999px;
    background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 40%, #e2e8f0 80%);
    background-size: 200% 100%;
    animation: homeSkeletonShimmer 1.2s ease-in-out infinite;
}

.home-skeleton-pill {
    width: 130px;
    height: 22px;
}

.home-skeleton-title {
    width: min(560px, 100%);
    height: 34px;
    border-radius: 0.9rem;
}

.home-skeleton-line {
    width: min(720px, 100%);
    height: 14px;
    border-radius: 0.75rem;
}

.home-skeleton-line.short {
    width: min(520px, 92%);
}

.home-skeleton-card {
    height: 220px;
    border-radius: 1rem;
}

@keyframes homeSkeletonShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@media (max-width: 1023px) {
    .home-skeleton-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-skeleton {
        padding-top: calc(84px + 0.85rem);
    }
    .home-skeleton-grid {
        grid-template-columns: 1fr;
    }
    .home-skeleton-card {
        height: 180px;
    }
}

@media (max-width: 360px) {
    .market-header {
        padding: 0.4rem 0.55rem;
        gap: 0.45rem;
    }
    .market-logo {
        height: 52px;
    }
    .market-search {
        padding: 0.35rem 0.55rem;
    }
    .market-search input {
        font-size: 0.82rem;
    }
    .store-card {
        min-width: 84px;
        max-width: 92px;
    }
    .product-title {
        font-size: 0.74rem;
        min-height: 2.55em;
    }
}
