
        :root {
            --bg-dark-900: #0b0f17;
            --bg-dark-800: #111827;
            --bg-dark-700: #1f293d;
            --bg-dark-600: #374151;
            
            --gold-400: #facc15;
            --gold-500: #eab308;
            --gold-600: #ca8a04;
            --gold-700: #a16207;

            --text-main: #f3f4f6;
            --text-muted: #9ca3af;
            --text-white: #ffffff;
            
            --border-dark: #1e293b;
            --border-light: #334155;
            
            --emerald-bg: rgba(16, 185, 129, 0.1);
            --emerald-border: rgba(16, 185, 129, 0.2);
            --emerald-text: #34d399;

            --purple-bg: rgba(168, 85, 247, 0.1);
            --purple-border: rgba(168, 85, 247, 0.2);
            --purple-text: #c084fc;

            --sky-bg: rgba(56, 189, 248, 0.1);
            --sky-border: rgba(56, 189, 248, 0.2);
            --sky-text: #38bdf8;

            --amber-bg: rgba(245, 158, 11, 0.1);
            --amber-border: rgba(245, 158, 11, 0.2);
            --amber-text: #fbbf24;

            --rose-bg: rgba(244, 63, 94, 0.1);
            --rose-border: rgba(244, 63, 94, 0.2);
            --rose-text: #f43f5e;
            
            --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 20px;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: var(--font-family);
            background-color: var(--bg-dark-900);
            color: var(--text-main);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            -webkit-font-smoothing: antialiased;
        }

        /* Custom Scrollbars */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: var(--bg-dark-800);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--bg-dark-600);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--gold-500);
        }

        .gold-gradient-text {
            background: linear-gradient(135deg, #fef08a 0%, var(--gold-500) 50%, var(--gold-600) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .gold-border-glow {
            box-shadow: 0 0 15px rgba(234, 179, 8, 0.12);
        }

        .hidden {
            display: none !important;
        }

        header {
            background-color: rgba(17, 24, 39, 0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border-dark);
            position: sticky;
            top: 0;
            z-index: 30;
            padding: 12px 24px;
        }

        .header-container {
            max-width: 1280px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .brand-container {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .brand-icon {
            width: 40px;
            height: 40px;
            border-radius: var(--radius-md);
            background: linear-gradient(135deg, var(--gold-700), var(--gold-500), #fde047);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--bg-dark-900);
            box-shadow: 0 4px 14px rgba(234, 179, 8, 0.25);
            font-size: 1.25rem;
        }

        .brand-title {
            font-size: 1.25rem;
            font-weight: 700;
            line-height: 1.2;
        }

        .brand-subtitle {
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .btn-action {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 14px;
            font-size: 0.75rem;
            font-weight: 600;
            border-radius: var(--radius-sm);
            background-color: var(--bg-dark-700);
            color: var(--text-main);
            border: 1px solid var(--border-light);
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
        }

        .btn-action:hover {
            background-color: var(--bg-dark-600);
            border-color: #475569;
        }

        main {
            flex: 1;
            max-width: 1280px;
            width: 100%;
            margin: 0 auto;
            padding: 32px 24px;
            display: flex;
            flex-direction: column;
        }

        /* KPI Grid (Estilo Padrão para Desktop) */
        .kpi-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
        }

        .kpi-card {
            background-color: rgba(17, 24, 39, 0.9);
            border: 1px solid var(--border-dark);
            border-radius: var(--radius-lg);
            padding: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            overflow: hidden;
            transition: border-color 0.2s ease;
        }

        .kpi-card:hover {
            border-color: var(--border-light);
        }

        .kpi-info p {
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 4px;
        }

        .kpi-info h3 {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--text-white);
        }

        .kpi-icon {
            width: 48px;
            height: 48px;
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
        }

        .kpi-icon.purple { background-color: var(--purple-bg); border: 1px solid var(--purple-border); color: var(--purple-text); }
        .kpi-icon.emerald { background-color: var(--emerald-bg); border: 1px solid var(--emerald-border); color: var(--emerald-text); }
        .kpi-icon.sky { background-color: var(--sky-bg); border: 1px solid var(--sky-border); color: var(--sky-text); }
        .kpi-icon.amber { background-color: var(--amber-bg); border: 1px solid var(--amber-border); color: var(--amber-text); }

        /* Main Workspace Grid (Estilo Padrão para Desktop) */
        .dashboard-layout {
            display: grid;
            grid-template-columns: 5fr 7fr;
            gap: 30px;
            align-items: start;
        }

        .form-section {
            background-color: rgba(17, 24, 39, 0.9);
            border: 1px solid var(--border-dark);
            border-radius: var(--radius-lg);
            padding: 24px;
            position: relative;
            top: 30px;
        }

        .form-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid var(--border-dark);
            padding-bottom: 16px;
            margin-bottom: 20px;
        }

        .form-header h2 {
            font-size: 1.125rem;
            font-weight: 700;
            color: var(--text-white);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-reset-form {
            background: transparent;
            border: none;
            font-size: 0.75rem;
            color: var(--text-muted);
            cursor: pointer;
            text-decoration: underline;
        }

        .btn-reset-form:hover {
            color: var(--text-white);
        }

        .product-form {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .form-group label {
            font-size: 0.75rem;
            font-weight: 500;
            color: #cbd5e1;
        }

        .form-control {
            width: 100%;
            background-color: var(--bg-dark-900);
            border: 1px solid var(--border-dark);
            border-radius: var(--radius-md);
            padding: 10px 14px;
            font-size: 0.875rem;
            color: var(--text-main);
            font-family: inherit;
            transition: all 0.2s ease;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--gold-500);
            box-shadow: 0 0 0 1px var(--gold-500);
        }

        textarea.form-control {
            resize: vertical;
            min-height: 80px;
        }

        /* Grids Internas do Formulário (Estilo Padrão para Desktop) */
        .grid-2 {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
        }

        .grid-3 {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
        }

        .image-preview-card {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px;
            background-color: var(--bg-dark-900);
            border: 1px solid var(--border-dark);
            border-radius: var(--radius-md);
        }

        .image-preview-card img {
            width: 48px;
            height: 48px;
            object-fit: cover;
            border-radius: var(--radius-sm);
            background-color: var(--bg-dark-800);
        }

        .image-preview-card span {
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        .btn-submit {
            width: 100%;
            padding: 12px 16px;
            background: linear-gradient(90deg, #eab308, #ca8a04);
            color: var(--bg-dark-900);
            font-weight: 700;
            font-size: 0.875rem;
            border: none;
            border-radius: var(--radius-md);
            cursor: pointer;
            box-shadow: 0 4px 14px rgba(234, 179, 8, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 8px;
            transition: all 0.2s ease;
        }

        .btn-submit:hover {
            filter: brightness(1.1);
        }

        .list-section {
            display: flex;
            flex-direction: column;
            gap: 16px;
            position: relative;
            top: 30px;
            padding-bottom: 30px;
        }

        /* Barra de Filtros (Estilo Padrão para Desktop) */
        .filters-bar {
            position: relative;
            background-color: rgba(17, 24, 39, 0.9);
            border: 1px solid var(--border-dark);
            border-radius: var(--radius-lg);
            padding: 16px;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .search-wrapper {
            position: relative;
            width: 260px;
        }

        .search-wrapper i {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-size: 0.75rem;
        }

        .search-wrapper input {
            padding-left: 36px;
            font-size: 0.75rem;
        }

        .filter-group {
            display: flex;
            align-items: center;
            gap: 8px;
            width: auto;
        }

        .filter-group span {
            font-size: 0.75rem;
            color: var(--text-muted);
            white-space: nowrap;
        }

        .filter-group select {
            font-size: 0.75rem;
        }

        .table-container {
            position: relative;
            background-color: rgba(17, 24, 39, 0.9);
            border: 1px solid var(--border-dark);
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
        }

        .table-responsive {
            overflow-x: auto;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            text-align: left;
            font-size: 0.875rem;
            color: #cbd5e1;
        }

        thead tr {
            background-color: rgba(11, 15, 23, 0.8);
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text-muted);
            border-bottom: 1px solid var(--border-dark);
        }

        th, td {
            padding: 16px;
        }

        tbody tr {
            border-bottom: 1px solid rgba(30, 41, 59, 0.6);
            transition: background-color 0.15s ease;
        }

        tbody tr:hover {
            background-color: rgba(31, 41, 61, 0.4);
        }

        .product-meta {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .product-meta img {
            width: 48px;
            height: 48px;
            object-fit: cover;
            border-radius: var(--radius-md);
            background-color: var(--bg-dark-900);
            border: 1px solid var(--border-dark);
        }

        .product-title {
            font-weight: 700;
            color: var(--text-white);
            font-size: 0.875rem;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .product-volume {
            font-size: 0.75rem;
            color: var(--text-muted);
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .tag-badge {
            display: inline-block;
            margin-top: 4px;
            font-size: 0.625rem;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 4px;
            border: 1px solid transparent;
        }

        .tag-badge.default { background-color: var(--amber-bg); color: var(--amber-text); border-color: var(--amber-border); }
        .tag-badge.launch { background-color: var(--sky-bg); color: var(--sky-text); border-color: var(--sky-border); }
        .tag-badge.bestseller { background-color: var(--rose-bg); color: var(--rose-text); border-color: var(--rose-border); }

        .category-pill {
            text-transform: capitalize;
            font-size: 0.75rem;
            padding: 4px 10px;
            border-radius: var(--radius-sm);
            background-color: var(--bg-dark-800);
            border: 1px solid var(--border-dark);
        }

        .price-display {
            font-weight: 700;
            color: var(--emerald-text);
        }

        .price-old {
            font-size: 0.75rem;
            color: var(--text-muted);
            text-decoration: line-through;
        }

        .stock-badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 9999px;
            font-size: 0.75rem;
            font-weight: 700;
        }

        .stock-badge.in-stock { background-color: var(--emerald-bg); color: var(--emerald-text); border: 1px solid var(--emerald-border); }
        .stock-badge.low-stock { background-color: var(--rose-bg); color: var(--rose-text); border: 1px solid var(--rose-border); }

        .actions-cell {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-icon {
            width: 32px;
            height: 32px;
            border-radius: var(--radius-sm);
            background-color: var(--bg-dark-900);
            border: 1px solid var(--border-dark);
            color: var(--text-main);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-icon:hover {
            background-color: var(--gold-500);
            color: var(--bg-dark-900);
        }

        .btn-icon.delete {
            color: var(--rose-text);
        }

        .btn-icon.delete:hover {
            background-color: #e11d48;
            color: var(--text-white);
        }

        .empty-state {
            padding: 48px;
            text-align: center;
            color: var(--text-muted);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
        }

        .empty-state i {
            font-size: 2.5rem;
            color: #475569;
        }

        .modal-overlay {
            position: fixed;
            inset: 0;
            background-color: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            z-index: 50;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px;
        }

        .modal-card {
            background-color: var(--bg-dark-800);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-lg);
            max-width: 640px;
            width: 100%;
            padding: 24px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid var(--border-light);
            padding-bottom: 12px;
        }

        .modal-header h3 {
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-white);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-close-modal {
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 1.5rem;
            cursor: pointer;
            line-height: 1;
        }

        .btn-close-modal:hover {
            color: var(--text-white);
        }

        .code-wrapper {
            position: relative;
        }

        .code-textarea {
            width: 100%;
            height: 250px;
            background-color: var(--bg-dark-900);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            padding: 16px;
            font-family: monospace;
            font-size: 0.75rem;
            color: var(--emerald-text);
            resize: none;
        }

        .btn-copy-code {
            position: absolute;
            top: 12px;
            right: 12px;
            background-color: var(--gold-500);
            color: var(--bg-dark-900);
            padding: 6px 12px;
            border-radius: var(--radius-sm);
            font-size: 0.75rem;
            font-weight: 700;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 4px;
            transition: background-color 0.2s ease;
        }

        .btn-copy-code:hover {
            background-color: var(--gold-600);
        }

        .toast {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 60;
            padding: 12px 16px;
            border-radius: var(--radius-md);
            font-weight: 700;
            font-size: 0.875rem;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
            display: flex;
            align-items: center;
            gap: 8px;
            transform: translateY(100px);
            opacity: 0;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .toast.show {
            transform: translateY(0);
            opacity: 1;
        }

        .toast.success {
            background-color: #10b981;
            color: var(--bg-dark-900);
        }

        .toast.danger {
            background-color: #e11d48;
            color: var(--text-white);
        }

        /* ==========================================================================
           REGRAS DE RESPONSIVIDADE (MAX-WIDTH)
           ========================================================================== */

        @media (max-width: 1207px) {
            .dashboard-layout {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 1023px) {
            .kpi-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 639px) {
            .header-actions {
               display:none;
            }

            .kpi-grid {
                grid-template-columns: repeat(1, 1fr);
            }

            .grid-2 {
                grid-template-columns: 1fr;
            }

            .grid-3 {
                grid-template-columns: 1fr;
            }

            .dashboard-layout{
                display: flex;
                flex-direction: column;
                width: 100%;
            }

            .form-section {
       width: 100%;
            }

            .list-section {
               display: flex;
               width: 100%;
            }

            .filters-bar {
             
                width: 100%;
                flex-direction: column;
            }

            .table-container{
                width: 100%;
            }

            .search-wrapper {
                width: 100%;
            }

            .filter-group {
                width: 100%;
            }
        }
  