/* ==========================================
   css/style.css - Estilos Premium Light
   Design inspirado em Mercado Livre, Shopee, Amazon
   Tema claro moderno e profissional
   ========================================== */

:root {
    /* Cores primárias */
    --primary-color: #3483fa;
    --primary-dark: #2968c8;
    --primary-light: #4d9fff;
    --secondary-color: #7e8a9a;
    
    /* Backgrounds - tema claro */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #fafafa;
    --bg-hover: #f0f0f0;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f8f8;
    
    /* Textos - tema claro */
    --text-primary: #1a1a1a;
    --text-secondary: #ffffff;
    --text-muted: #999999;
    --text-light: #b3b3b3;
    
    /* Bordas - tema claro */
    --border-color: #e6e6e6;
    --border-light: #f0f0f0;
    --border-dark: #d0d0d0;
    
    /* Cores de status */
    --success-color: #00a650;
    --error-color: #ff3b30;
    --warning-color: #ff9500;
    --info-color: #3483fa;
    
    /* Sombras */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.12);
    
    /* Bordas arredondadas */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 999px;
    
    /* Amarelo Mercado Livre */
    --ml-yellow: #ffe600;
    --ml-yellow-dark: #e6cf00;
    --ml-yellow-hover: #fff147;
    --ml-blue: #3483fa;
    --ml-blue-dark: #2968c8;
    
    /* Layout */
    --hero-max-width: 1200px;
    --container-padding: 20px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f3eb;
    color: #111827;
    line-height: 1.5;
    min-height: 100vh;
    padding-bottom: 80px;
    padding-top: 0 !important;
    margin-top: 0 !important;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   Page Wrapper
   ========================================== */

.page-wrapper {
    min-height: 1vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    /* Padding-top igual à altura do header fixo para que conteúdo comece logo abaixo */
    padding-top: 60px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ==========================================
   Top Header (VM IMPORTS - Verde Escuro)
   ========================================== */

.top-header {
    background-color: var(--ml-yellow);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    margin: 0;
    padding: 0;
}

/* Header Verde Escuro VM IMPORTS */
.vm-header-dark {
    background: linear-gradient(135deg, #0f766e 0%, #0d5f58 100%);
    box-shadow: var(--shadow-md);
    padding: 0 !important;
    margin: 0 !important;
}

.vm-header-dark .vm-header-inner {
    max-width: var(--hero-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    position: relative;
}

/* Zerar padding/margin-top de html, body, main, .page, .content */
/* .page-wrapper tem padding-top para compensar header fixo */
html,
body,
main,
.page,
.content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Hero colado embaixo do header fixo */
.hero-electronics {
    margin-top: 0 !important;
}

.vm-logo .logo-text {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.vm-promo-badge {
    color: #ffffff;
    font-size: 11px;
    opacity: 0.9;
    margin-left: 12px;
}

.vm-search-bar {
    background: #ffffff;
    border: none;
}

.vm-search-bar .search-input-header {
    color: var(--text-primary);
}

.vm-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-favorites {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.btn-favorites:hover {
    opacity: 0.8;
}

.btn-favorites svg {
    width: 22px;
    height: 22px;
    stroke: #ffffff;
    fill: none;
}

.vm-btn-enter {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.vm-btn-enter:hover {
    opacity: 0.8;
}

/* Badge Promoção */
.vm-header-promo {
    position: absolute;
    top: 12px;
    right: 120px;
    background: #ff9500;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .vm-header-promo {
        display: none;
    }
}

.hero-header-green {
    background: var(--ml-yellow);
    box-shadow: var(--shadow-sm);
    padding: 0;
}

/* Barra de Busca no Topo */
.search-top-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 8px 16px;
    background: var(--ml-yellow);
}

.search-bar-top {
    width: 100%;
    max-width: 600px;
    background: var(--bg-primary);
    border-radius: var(--radius-xs);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-xs);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.search-bar-top:focus-within {
    border-color: var(--ml-blue);
    box-shadow: var(--shadow-md);
}

.search-bar-top .search-input-header {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 16px;
    padding: 0;
    outline: none;
    min-width: 0;
    font-weight: 400;
    font-family: inherit;
}

.search-bar-top .search-input-header::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.search-bar-top .btn-search-header {
    background-color: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.search-bar-top .btn-search-header:hover {
    opacity: 0.7;
}

.search-bar-top .btn-search-header svg {
    stroke: var(--text-secondary);
    width: 18px;
    height: 18px;
}

/* Hero Inner */
.hero-inner {
    max-width: var(--hero-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    height: 48px;
}

.logo-and-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-shrink: 0;
}

.hero-header-green .top-header {
    background: transparent;
    box-shadow: none;
}

/* Textos no header amarelo */
.hero-header-green .logo,
.hero-header-green .logo-text,
.hero-header-green .header-greeting,
.hero-header-green .header-greeting span,
.hero-header-green .btn-login,
.hero-header-green .btn-header-admin,
.hero-header-green .btn-cart,
.hero-header-green .btn-cart svg {
    color: var(--text-primary);
}

.hero-header-green .btn-login:hover,
.hero-header-green .btn-header-admin:hover,
.hero-header-green .btn-cart:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.hero-header-green .user-avatar-btn {
    background-color: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

.hero-header-green .user-avatar-initials {
    color: var(--text-primary);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ml-blue);
    font-weight: 400;
    font-size: 18px;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    font-size: 20px;
    display: none;
}

.logo-text {
    color: var(--ml-blue);
    font-weight: 400;
}

.header-greeting {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 300;
    margin-left: 8px;
    display: none;
}

.header-greeting span {
    font-weight: 400;
    color: var(--text-primary);
}

/* Search Wrapper */
.search-wrapper {
    display: flex;
    justify-content: center;
    min-width: 0;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

/* Barra de Busca */
.search-bar {
    width: 100%;
    max-width: 720px;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    min-width: 0;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.search-bar:focus-within {
    border-color: var(--ml-blue);
    box-shadow: var(--shadow-lg);
}

.header-search {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    min-width: 0;
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    padding: 2px;
    gap: 8px;
}

.search-input-header {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 10px 14px;
    outline: none;
    min-width: 0;
    font-weight: 400;
}

.search-bar .search-input-header {
    padding: 0;
    font-size: 0.95rem;
}

.search-input-header::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.btn-search-header {
    background-color: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
    margin-right: 2px;
}

.search-bar .btn-search-header {
    padding: 0.5rem;
    margin-right: 0;
    border-radius: 50%;
    flex-shrink: 0;
}

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

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

.btn-search-header svg {
    stroke: var(--text-secondary);
    width: 20px;
    height: 20px;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-actions-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.btn-header-action {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    transition: color 0.2s ease;
    position: relative;
    cursor: pointer;
    font-family: inherit;
}

.btn-header-action:hover {
    color: var(--text-primary);
}

.btn-header-action svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-primary);
    fill: none;
}

.btn-notifications {
    padding: 0;
    min-width: 24px;
    width: 24px;
    height: 24px;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--error-color);
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    border: 2px solid var(--ml-yellow);
    padding: 0 4px;
}

.btn-cart {
    padding: 0;
    min-width: 24px;
    width: 24px;
    height: 24px;
}

.btn-cart svg {
    stroke: var(--text-primary);
    fill: none;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--error-color);
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    border: 2px solid var(--ml-yellow);
    padding: 0 4px;
}

.cart-badge.has-items {
    display: flex;
}

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

.btn-login {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.btn-login:hover {
    color: var(--text-primary);
}

.header-admin-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-header-admin {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.btn-header-admin:hover {
    color: var(--text-primary);
}

/* User Menu / Avatar */
.user-menu {
    position: relative;
}

.user-avatar-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.user-avatar-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.08);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.user-name-dropdown {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
    font-family: inherit;
}

.user-name-dropdown:hover {
    color: var(--text-primary);
}

.user-first-name {
    color: inherit;
}

.dropdown-arrow {
    color: inherit;
    transition: transform 0.2s ease;
    width: 10px;
    height: 10px;
}

.user-name-dropdown:hover .dropdown-arrow {
    transform: translateY(2px);
}

.user-avatar-btn:hover {
    opacity: 0.8;
}

.user-avatar-initials {
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

/* Overlay escuro */
.user-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
}

.user-panel-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Painel Lateral */
.user-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 90vw;
    height: 100vh;
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-xl);
    z-index: 1999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-panel.show {
    transform: translateX(0);
}

.user-panel-header {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.user-panel-avatar-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.user-avatar-initials-large {
    color: white;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.user-panel-info {
    flex: 1;
    min-width: 0;
}

.user-panel-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-panel-email {
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-panel-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    padding: 0;
}

.user-panel-close:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.user-panel-content {
    flex: 1;
    overflow-y: auto;
    background-color: var(--bg-primary);
}

.user-panel-nav {
    padding: 0.5rem 0;
}

.user-panel-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    border-left: 3px solid transparent;
}

.user-panel-nav-item:hover {
    background-color: var(--bg-hover);
    color: var(--primary-color);
}

.user-panel-nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.user-panel-nav-item:hover svg {
    color: var(--primary-color);
}

.user-panel-nav-item span:not(.nav-item-active-indicator) {
    flex: 1;
}

.nav-item-active-indicator {
    width: 3px;
    height: 100%;
    background-color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
}

.user-panel-nav-item.active,
.user-panel-nav-item:has(.nav-item-active-indicator) {
    background-color: rgba(52, 131, 250, 0.05);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.user-panel-nav-item.active svg,
.user-panel-nav-item:has(.nav-item-active-indicator) svg {
    color: var(--primary-color);
}

.user-panel-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 0;
}

.user-panel-section-title {
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-panel-admin-section {
    margin-top: 0.5rem;
}

.user-panel-nav-item-logout {
    color: var(--error-color);
}

.user-panel-nav-item-logout:hover {
    background-color: rgba(255, 59, 48, 0.05);
    color: var(--error-color);
}

.user-panel-nav-item-logout svg {
    color: var(--error-color);
}

.user-panel-content::-webkit-scrollbar {
    width: 6px;
}

.user-panel-content::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.user-panel-content::-webkit-scrollbar-thumb {
    background: var(--border-dark);
    border-radius: 3px;
}

.user-panel-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.admin-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.admin-greeting {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.admin-greeting span {
    font-weight: 600;
    color: var(--primary-color);
}

.admin-bar-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.admin-bar-actions a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-size: 0.85rem;
    white-space: nowrap;
    font-weight: 500;
}

.admin-bar-actions .btn-add-product {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.admin-bar-actions .btn-add-product:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

.admin-bar-actions .btn-admin {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.admin-bar-actions .btn-admin:hover {
    background-color: var(--bg-hover);
    border-color: var(--border-dark);
    color: var(--text-primary);
}

.admin-bar-actions .btn-logout,
.admin-bar-actions .btn-logout-admin {
    background-color: transparent;
    color: var(--error-color);
    border: 1px solid rgba(255, 59, 48, 0.3);
}

.admin-bar-actions .btn-logout:hover,
.admin-bar-actions .btn-logout-admin:hover {
    background-color: rgba(255, 59, 48, 0.1);
    border-color: rgba(255, 59, 48, 0.5);
    color: var(--error-color);
}

/* ==========================================
   Category Chips
   ========================================== */

.category-tabs {
    max-width: var(--hero-max-width);
    margin: 0 auto;
    padding: 0 16px;
    background: var(--ml-yellow);
    height: 40px;
    display: flex;
    align-items: center;
}

.category-tabs-inner {
    display: flex;
    gap: 8px;
    align-items: center;
    height: 100%;
}

.category-chips-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 0.45rem 0;
    position: sticky;
    top: 60px;
    z-index: 900;
    margin-top: 0;
    box-shadow: var(--shadow-xs);
}

.category-chips-section.hero-header-green {
    background: linear-gradient(180deg, var(--ml-yellow) 0%, var(--ml-yellow-dark) 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

.category-chips-section.hero-header-green .chip {
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.2);
}

.category-chips-section.hero-header-green .chip:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.3);
}

.category-chips-section.hero-header-green .chip-active {
    background-color: var(--bg-primary);
    border-color: var(--bg-primary);
    color: var(--text-primary);
}

.category-chips {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0;
}

.category-chips::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: 6px 12px;
    border-radius: var(--radius-xs);
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: background 0.2s;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.category-tab:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.category-tab-active {
    background: transparent;
    color: var(--text-primary);
    border: none;
    font-weight: 500;
    box-shadow: none;
}

.category-tab-active:hover {
    background: transparent;
    color: var(--text-primary);
}

.chip {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-family: inherit;
}

.chip:hover {
    border-color: var(--border-dark);
    background-color: var(--bg-hover);
}

.chip-active {
    background-color: var(--bg-primary);
    border-color: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: var(--shadow-xs);
}

.chip-active:hover {
    background-color: var(--bg-card-hover);
}

.category-tabs .chip {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    color: var(--text-primary);
}

.category-tabs .chip:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.35);
}

.category-tabs .chip.chip-active,
.category-tabs .chip.category-tab-active {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.category-tabs .chip.chip-active:hover,
.category-tabs .chip.category-tab-active:hover {
    background: var(--bg-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.chip.category-tab {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    color: var(--text-primary);
}

.chip.category-tab:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.35);
}

.chip.category-tab.chip-active,
.chip.category-tab.category-tab-active {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

/* ==========================================
   Main Content
   ========================================== */

.main {
    min-height: calc(100vh - 200px);
    background-color: var(--bg-primary);
    padding-top: 1rem;
}

.content-section-white {
    background: #ffffff;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: 0 !important;
    padding: var(--spacing-lg) var(--spacing-lg) 40px;
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: calc(100vh - 200px);
    box-shadow: var(--shadow-sm);
    max-width: var(--hero-max-width);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.content-wrapper {
    display: flex;
    min-height: calc(100vh - 200px);
    gap: 0;
}

.main-layout {
    display: flex;
    min-height: calc(100vh - 200px);
}

.content-section-white .main-layout {
    min-height: auto;
}

/* Sidebar */
.sidebar {
    width: 280px;
    min-width: 280px;
    background-color: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    padding: 0;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    z-index: 100;
    display: none; /* Esconder sidebar lateral conforme imagem */
}

body.has-admin-bar .sidebar {
    top: 108px;
    height: calc(100vh - 108px);
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    border-left: 3px solid transparent;
}

.sidebar-nav-item:hover {
    background-color: var(--bg-hover);
    color: var(--primary-color);
}

.sidebar-nav-item.active {
    background-color: rgba(52, 131, 250, 0.05);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.sidebar-nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.sidebar-nav-item:hover svg,
.sidebar-nav-item.active svg {
    color: var(--primary-color);
}

.sidebar-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.75rem 0;
}

.sidebar-section-title {
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-admin-section {
    margin-top: 0.5rem;
}

.main-content {
    flex: 1;
    min-width: 0;
    padding: 2rem 0;
    background-color: var(--bg-primary);
}

.main-content .container {
    max-width: 1400px;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-dark);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==========================================
   Filters
   ========================================== */

.filters-row {
    display: none !important;
}

.filters-row .filter-group {
    display: none !important;
}

.filters {
    display: none !important;
}

.filters-content {
    display: none !important;
}

.filter-group {
    display: none !important;
}

.filter-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 131, 250, 0.1);
}

.filter-select:hover {
    border-color: var(--border-dark);
}

/* ==========================================
   Home Sections
   ========================================== */

.home-sections {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.home-section {
    margin-bottom: 2rem;
    background: #f5f5f5;
    padding: 24px 16px;
    border-radius: 8px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 16px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-section:first-child {
    margin-top: 1rem;
}

.section-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.section-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ==========================================
   Products Grid
   ========================================== */

.products-section {
    min-height: 400px;
}

.loading {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.no-products {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.product-grid {
    display: flex;
    gap: 16px;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Ocultar scrollbar no estilo Mercado Livre */
    -ms-overflow-style: none;
}

.product-grid::-webkit-scrollbar {
    display: none; /* Ocultar scrollbar no estilo Mercado Livre */
}

.products-grid {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border-dark) transparent;
}

.products-grid::-webkit-scrollbar {
    height: 8px;
}

.products-grid::-webkit-scrollbar-track {
    background: transparent;
}

.products-grid::-webkit-scrollbar-thumb {
    background: var(--border-dark);
    border-radius: 4px;
}

.products-grid::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

@media (min-width: 1200px) {
    .products-grid {
        gap: 1.25rem;
    }
}

.products-row {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Product Card - Estilo Mercado Livre */
.product-card {
    background-color: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    padding: 16px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    min-height: 0;
    /* Para carrossel horizontal */
    flex-shrink: 0;
    min-width: 224px;
    max-width: 224px;
    width: 224px;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: #d0d0d0;
}

.card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border-color);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #d0d0d0;
    overflow: hidden;
    position: relative;
    min-height: 160px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 4px;
    background-color: transparent;
    min-height: 0;
}

.product-name {
    font-size: 14px;
    font-weight: 400;
    color: #333333;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
    max-height: 2.8em;
}

.product-description {
    display: none; /* Ocultar descrição no estilo Mercado Livre */
}

.product-price {
    font-size: 24px;
    font-weight: 400;
    color: #333333;
    margin-bottom: 4px;
    margin-top: auto;
    line-height: 1.2;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.product-price .price-symbol {
    font-size: 14px;
    margin-top: 4px;
}

.product-price .price-value {
    font-size: 24px;
    font-weight: 400;
}

.product-price .price-value sup {
    font-size: 14px;
    font-weight: 400;
    vertical-align: super;
}

.product-price .old-price {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 0.4rem;
}

.product-price .current-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--success-color);
}

.btn-add-cart {
    margin-top: auto;
    width: 100%;
    padding: 10px 16px;
    background: #3483fa;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-cart:hover {
    background: #2968c8;
}

.product-installment {
    font-size: 14px;
    color: #3483fa;
    margin-bottom: 8px;
    line-height: 1.3;
    font-weight: 400;
}

.product-stock {
    display: none; /* Ocultar estoque no estilo Mercado Livre */
}

.btn-add-cart:active {
    background: var(--primary-dark);
}

.btn-add-cart:disabled {
    background: var(--secondary-color);
    cursor: not-allowed;
    opacity: 0.6;
}

/* ==========================================
   Bottom Navigation
   ========================================== */

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 0.5rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    position: relative;
    flex: 1;
    max-width: 100px;
}

.bottom-nav-item:hover,
.bottom-nav-item.bottom-nav-active {
    color: var(--primary-color);
}

.bottom-nav-item svg {
    width: 22px;
    height: 22px;
}

.bottom-nav-badge {
    position: absolute;
    top: 0;
    right: 20%;
    background-color: var(--error-color);
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    border: 2px solid var(--bg-primary);
    padding: 0 4px;
}

.bottom-nav-badge.has-items {
    display: flex;
}

/* ==========================================
   Toast Messages
   ========================================== */

.toast {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 3000;
    max-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast.ok {
    border-left: 4px solid var(--success-color);
}

.toast.warn {
    border-left: 4px solid var(--warning-color);
}

.toast.error {
    border-left: 4px solid var(--error-color);
}

.toast.info {
    border-left: 4px solid var(--info-color);
}

/* ==========================================
   Admin Pages
   ========================================== */

.admin-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 2rem;
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.admin-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 131, 250, 0.1);
}

.form-group input:hover {
    border-color: var(--border-dark);
}

.btn-login {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: var(--primary-dark);
}

.btn-login:disabled {
    background-color: var(--secondary-color);
    cursor: not-allowed;
}

.login-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 500;
}

.login-success {
    background-color: rgba(0, 166, 80, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.login-error {
    background-color: rgba(255, 59, 48, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.back-link {
    text-align: center;
    margin-top: 1rem;
}

.back-link a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ==========================================
   Dashboard
   ========================================== */

.dashboard-container {
    max-width: 1200px;
    margin: 100px auto;
    padding: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-title {
    color: var(--primary-color);
}

.btn-logout {
    background-color: var(--error-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn-logout:hover {
    background-color: #dc2626;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-xs);
    transition: all 0.2s ease;
}

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

.dashboard-card h3 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-card .value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }

    .products-row {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 900px) {
    .search-top-wrapper {
        padding: 10px 12px;
    }
    
    .search-bar-top {
        max-width: 100%;
    }
    
    .hero-inner {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
    }
    
    .logo-and-title {
        flex: 0 0 auto;
    }
    
    .hero-actions {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    
    .user-avatar-section {
        flex-direction: row;
        gap: 8px;
    }
    
    .header-actions-row {
        gap: 8px;
    }
    
    .search-wrapper {
        order: 3;
        width: 100%;
        margin: 0.5rem 0 0 0;
    }
    
    .search-bar {
        max-width: 100%;
    }
    
    .header-greeting {
        display: none !important;
    }
    
    .header-admin-actions {
        display: none !important;
    }
    
    .top-header-inner {
        flex-wrap: wrap;
    }
    
    .header-left {
        order: 1;
        flex: 0 0 auto;
    }
    
    .header-search {
        order: 3;
        width: 100%;
        margin: 0.5rem 0 0 0;
        max-width: 100%;
    }
    
    .header-right {
        order: 2;
        flex: 1;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
    }

    .container {
        padding: 0 15px;
    }
    
    .search-top-wrapper {
        padding: 10px 12px;
    }
    
    .hero-inner {
        gap: 8px;
        padding: 10px 12px;
    }
    
    .content-section-white {
        margin-top: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        padding: 20px 16px 32px;
        max-width: 100%;
    }
    
    .category-tabs {
        padding: 10px 12px;
    }
    
    .user-avatar-section {
        gap: 6px;
    }
    
    .user-name-dropdown {
        font-size: 0.8rem;
        padding: 2px 6px;
    }
    
    .header-actions-row {
        gap: 6px;
    }
    
    .btn-header-action {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .btn-header-action svg {
        width: 18px;
        height: 18px;
    }
    
    .category-tabs-inner {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .category-tabs-inner::-webkit-scrollbar {
        display: none;
    }
    
    .category-chips {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .main-layout {
        flex-direction: column;
    }
    
    .top-header-inner {
        padding: 0.5rem 1rem;
    }
    
    .sidebar {
        width: 100%;
        min-width: 100%;
        position: relative;
        top: 0;
        height: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .sidebar.show {
        max-height: 500px;
    }
    
    .main-content {
        padding: 1.5rem 0;
    }
    
    .category-chips-section {
        top: 100px;
    }
    
    .admin-bar-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .admin-bar-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .header {
        padding: 0.75rem 0;
    }

    .header-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .header-search {
        max-width: 100%;
        order: 3;
        grid-column: 1 / -1;
    }
    
    .header-actions {
        justify-content: space-between;
        width: 100%;
        gap: 0.5rem;
    }

    .user-panel {
        width: 100%;
        max-width: 100vw;
    }
    
    .user-panel-header {
        padding: 1.25rem;
    }
    
    .user-panel-avatar-large {
        width: 56px;
        height: 56px;
    }
    
    .user-avatar-initials-large {
        font-size: 1.25rem;
    }
    
    .user-panel-name {
        font-size: 1rem;
    }
    
    .user-panel-nav-item {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .cart-text {
        display: inline;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .home-sections {
        gap: 2rem;
    }

    .category-chips-section {
        top: 60px;
        padding: 0.75rem 0;
    }

    body.has-admin-bar .category-chips-section {
        top: 98px;
    }

    .category-chips {
        gap: 0.5rem;
        padding: 0.5rem 15px;
    }

    .chip {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .header-search {
        max-width: 100%;
        margin: 0.5rem 0 0 0;
    }
    
    .main {
        padding: 1.5rem 0;
    }
    
    .filters {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .filters-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filters-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .filters-row .filter-group {
        min-width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .products-row {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 0.75rem;
    }
    
    .product-card {
        padding: 0.75rem;
    }

    .product-image {
        margin-bottom: 0.5rem;
    }

    .product-name {
        font-size: 0.9rem;
        min-height: 2.4em;
    }

    .product-description {
        font-size: 0.75rem;
        min-height: 2.2em;
    }

    .product-price {
        font-size: 0.95rem;
    }

    .btn-add-cart {
        padding: 0.45rem 0.5rem;
        font-size: 0.8rem;
    }

    .bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    
    .admin-container {
        margin: 50px auto;
        padding: 1rem;
    }
    
    .dashboard-container {
        margin: 50px auto;
        padding: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .toast {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .header {
        padding: 0.5rem 0;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    .header-search {
        padding: 0.4rem;
    }

    .search-input-header {
        font-size: 0.9rem;
        padding: 0.4rem 0.75rem;
    }

    .btn-search-header {
        padding: 0.4rem 0.75rem;
    }

    .btn-cart {
        padding: 0.4rem 0.75rem;
        font-size: 0.875rem;
    }

    .cart-text {
        display: none;
    }

    .category-chips-section {
        padding: 0.5rem 0;
    }

    .chip {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
    }

    .main {
        padding: 1rem 0;
    }

    .filters {
        padding: 0.875rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0.5rem;
    }

    .products-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .product-card {
        padding: 0.75rem;
    }

    .product-image {
        margin-bottom: 0.5rem;
    }

    .product-name {
        font-size: 0.85rem;
        min-height: 2.4em;
    }

    .product-description {
        font-size: 0.7rem;
        min-height: 2em;
    }

    .product-price {
        font-size: 0.9rem;
    }

    .btn-add-cart {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
    }

    .bottom-nav-item {
        font-size: 0.7rem;
        padding: 0.4rem;
    }

    .bottom-nav-item svg {
        width: 20px;
        height: 20px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Hero Section - Estilo Premium Preto/Cinza
   Design elegante para perfumes premium
   ========================================== */
.hero-electronics {
    /* Fundo preto/cinza elegante - estilo premium perfumes */
    background: radial-gradient(circle at top left, #2b2b2b 0%, #111111 45%, #050505 100%);
    color: #f9fafb;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5);
    border-radius: 0;
    padding: 40px 20px;
    margin: 0 !important;
    margin-top: 0 !important;
    padding-top: 40px;
    position: relative;
    overflow: hidden;
    /* Altura premium aumentada para 450px */
    min-height: 450px;
    height: 450px;
}

/* Quando há imagem customizada, remove o background preto/cinza completamente */
.hero-electronics.has-custom-image {
    background: transparent !important;
}

/* Imagem customizada do hero (sobrepõe tudo) */
.hero-custom-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.hero-custom-image.has-image {
    opacity: 1;
}

/* Carrossel de imagens do hero - Slide Horizontal */
.hero-carousel-images {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-carousel-images.has-images {
    display: block;
}

.hero-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), opacity 1s ease-in-out;
    pointer-events: none;
}

.hero-carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.hero-carousel-slide.prev {
    transform: translateX(-100%);
    opacity: 0;
    z-index: 1;
}

/* Container dos botões admin do hero */
.hero-admin-controls {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    display: flex;
    gap: 8px;
    flex-direction: column;
}

/* Botão para administrador alterar imagem do hero */
.hero-change-image-btn,
.hero-edit-image-btn {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: inherit;
}

.hero-change-image-btn:hover,
.hero-edit-image-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.hero-change-image-btn svg,
.hero-edit-image-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Painel de edição da imagem do hero */
.hero-edit-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.hero-edit-panel-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
}

.hero-edit-panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.hero-edit-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.hero-edit-close-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.hero-edit-close-btn svg {
    width: 20px;
    height: 20px;
}

.hero-edit-panel-body {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-edit-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-edit-control label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.hero-edit-control label svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-secondary);
}

.hero-edit-control label span {
    color: var(--primary-color);
    font-weight: 600;
    margin-left: auto;
}

.hero-edit-control input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-secondary);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.hero-edit-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid var(--bg-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.hero-edit-control input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.hero-edit-control input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid var(--bg-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.hero-edit-control input[type="range"]::-moz-range-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.hero-edit-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.hero-edit-reset-btn,
.hero-edit-save-btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.hero-edit-reset-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.hero-edit-reset-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-dark);
}

.hero-edit-save-btn {
    background: var(--primary-color);
    color: #ffffff;
}

.hero-edit-save-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 131, 250, 0.3);
}

/* Overlay escuro quando painel de edição está aberto */
.hero-edit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hero-edit-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Garantir que o conteúdo do hero fique acima da imagem */
.hero-electronics-content {
    position: relative;
    z-index: 2;
    max-width: var(--hero-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

/* Textos do hero - estilo premium branco/cinza claro */
.hero-electronics-text {
    color: #ffffff;
}

.hero-electronics-title {
    font-size: 48px;
    font-weight: 700;
    color: #f9fafb;
    margin: 0 0 12px 0;
    letter-spacing: 0.5px;
    /* Sombra suave para legibilidade sobre fundo escuro */
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-electronics-subtitle {
    font-size: 16px;
    color: #d1d5db;
    opacity: 0.95;
    margin: 0 0 28px 0;
    letter-spacing: 0.5px;
    /* Sombra suave para legibilidade */
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-electronics-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Botões do hero - estilo premium preto/cinza elegante */
.hero-btn-primary {
    background: #1f2937;
    color: #f9fafb;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-btn-primary:hover {
    background: #374151;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    color: #ffffff;
}

.hero-btn-secondary {
    background: transparent;
    color: #f9fafb;
    padding: 14px 32px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    text-decoration: none;
    color: #ffffff;
}

.hero-electronics-images {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0.9;
}

/* ==========================================
   Responsivo Hero Electronics
   Ajustes para mobile mantendo estilo premium
   ========================================== */
@media (max-width: 900px) {
    .hero-electronics {
        min-height: 380px;
        height: auto;
        padding: 32px 16px;
    }
    
    .hero-electronics-content {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .hero-electronics {
        padding: 32px 16px;
        margin-top: 0 !important;
        /* Altura reduzida no mobile mas ainda elegante */
        min-height: 320px;
        height: auto;
    }

    .hero-electronics-content {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .hero-electronics-title {
        font-size: 36px;
        /* Garantir legibilidade no mobile */
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);
    }

    .hero-electronics-subtitle {
        font-size: 14px;
        text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
    }

    .hero-electronics-buttons {
        justify-content: center;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
    }

    .hero-electronics-images {
        justify-content: center;
        display: none; /* Esconder imagens no mobile se necessário */
    }
}

/* ==========================================
   Main Areas Section (Navegue pelas áreas da loja)
   ========================================== */

.main-areas {
    margin: 24px auto 32px;
    margin-top: 24px !important;
    max-width: var(--hero-max-width);
    background: #f2ece1;
    border-radius: 22px;
    padding: 20px 22px 22px;
    border: 1px solid rgba(209, 213, 219, 0.7);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.main-areas-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 18px;
}

.main-areas-title {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 4px 0;
}

.main-areas-sub {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.main-areas-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.main-area-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 14px 16px 16px;
    border: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.main-area-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
    border-color: rgba(55, 65, 81, 0.2);
    text-decoration: none;
}

.main-area-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.main-area-label {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.main-area-icon {
    font-size: 26px;
    line-height: 1;
}

.main-area-desc {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.main-area-link {
    margin-top: 4px;
    font-size: 12px;
    color: #0f766e;
    font-weight: 600;
    display: block;
}

/* Responsivo para Main Areas */
@media (max-width: 900px) {
    .main-areas-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .main-areas {
        padding: 16px 12px 18px;
        border-radius: 18px;
    }
}

/* ==========================================
   Utilitários
   ========================================== */

[style*="display: none"] {
    display: none !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
}

/* === Ajuste: Imagens do hero exibidas por inteiro === */
.hero-custom-image,
.hero-carousel-slide {
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #000 !important; /* fundo discreto para preencher áreas vazias */
}
